wined3d: Acquire references to indirect dispatch 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
0839773db2
commit
3fb9a8ea51
|
@ -3630,6 +3630,15 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_DISPATCH:
|
||||
{
|
||||
struct wined3d_cs_dispatch *op = (struct wined3d_cs_dispatch *)packet->data;
|
||||
|
||||
if (op->parameters.indirect)
|
||||
wined3d_buffer_decref(op->parameters.u.indirect.buffer);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -3778,6 +3787,15 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_DISPATCH:
|
||||
{
|
||||
struct wined3d_cs_dispatch *op = (struct wined3d_cs_dispatch *)packet->data;
|
||||
|
||||
if (op->parameters.indirect)
|
||||
wined3d_buffer_incref(op->parameters.u.indirect.buffer);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue