wined3d: Remove stateblock handling from wined3d_device_set_pipeline_unordered_access_view().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-01-23 23:30:51 -06:00 committed by Alexandre Julliard
parent 7bb0d2d4e8
commit 6f721eede5
1 changed files with 3 additions and 4 deletions

View File

@ -2950,15 +2950,14 @@ static void wined3d_device_set_pipeline_unordered_access_view(struct wined3d_dev
return;
}
prev = device->update_state->unordered_access_view[pipeline][idx];
prev = device->state.unordered_access_view[pipeline][idx];
if (uav == prev && initial_count == ~0u)
return;
if (uav)
wined3d_unordered_access_view_incref(uav);
device->update_state->unordered_access_view[pipeline][idx] = uav;
if (!device->recording)
wined3d_cs_emit_set_unordered_access_view(device->cs, pipeline, idx, uav, initial_count);
device->state.unordered_access_view[pipeline][idx] = uav;
wined3d_cs_emit_set_unordered_access_view(device->cs, pipeline, idx, uav, initial_count);
if (prev)
wined3d_unordered_access_view_decref(prev);
}