Commit 06ce7001 authored by Jan Sikorski's avatar Jan Sikorski Committed by Alexandre Julliard

wined3d: Acquire references to shader resource views for command lists by inspecting CS packets.

parent 2991180e
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment