wined3d: Acquire references to unordered-access view counter buffers for command lists by inspecting CS packets.
Signed-off-by: Jan Sikorski <jsikorski@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
51c10cbc33
commit
a33ed42ffe
|
@ -3704,6 +3704,16 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_COPY_UAV_COUNTER:
|
||||
{
|
||||
struct wined3d_cs_copy_uav_counter *op;
|
||||
|
||||
op = (struct wined3d_cs_copy_uav_counter *)packet->data;
|
||||
wined3d_buffer_decref(op->buffer);
|
||||
wined3d_unordered_access_view_decref(op->view);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -3926,6 +3936,16 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_COPY_UAV_COUNTER:
|
||||
{
|
||||
struct wined3d_cs_copy_uav_counter *op;
|
||||
|
||||
op = (struct wined3d_cs_copy_uav_counter *)packet->data;
|
||||
wined3d_buffer_incref(op->buffer);
|
||||
wined3d_unordered_access_view_incref(op->view);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue