wined3d: Acquire references to unordered-access views 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
30de5feca7
commit
e6b61128e5
|
@ -3571,6 +3571,19 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_SET_UNORDERED_ACCESS_VIEWS:
|
||||
{
|
||||
struct wined3d_cs_set_unordered_access_views *op;
|
||||
|
||||
op = (struct wined3d_cs_set_unordered_access_views *)packet->data;
|
||||
for (i = 0; i < op->count; ++i)
|
||||
{
|
||||
if (op->uavs[i].view)
|
||||
wined3d_unordered_access_view_decref(op->uavs[i].view);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -3660,6 +3673,19 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_SET_UNORDERED_ACCESS_VIEWS:
|
||||
{
|
||||
struct wined3d_cs_set_unordered_access_views *op;
|
||||
|
||||
op = (struct wined3d_cs_set_unordered_access_views *)packet->data;
|
||||
for (i = 0; i < op->count; ++i)
|
||||
{
|
||||
if (op->uavs[i].view)
|
||||
wined3d_unordered_access_view_incref(op->uavs[i].view);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue