wined3d: Acquire references to shader resource 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
2991180e47
commit
06ce7001bd
|
@ -3558,6 +3558,19 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_SET_SHADER_RESOURCE_VIEWS:
|
||||
{
|
||||
struct wined3d_cs_set_shader_resource_views *op;
|
||||
|
||||
op = (struct wined3d_cs_set_shader_resource_views *)packet->data;
|
||||
for (i = 0; i < op->count; ++i)
|
||||
{
|
||||
if (op->views[i])
|
||||
wined3d_shader_resource_view_decref(op->views[i]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -3634,6 +3647,19 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_SET_SHADER_RESOURCE_VIEWS:
|
||||
{
|
||||
struct wined3d_cs_set_shader_resource_views *op;
|
||||
|
||||
op = (struct wined3d_cs_set_shader_resource_views *)packet->data;
|
||||
for (i = 0; i < op->count; ++i)
|
||||
{
|
||||
if (op->views[i])
|
||||
wined3d_shader_resource_view_incref(op->views[i]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue