wined3d: Acquire references to stream output 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
8641353442
commit
c36351be1e
|
@ -3658,6 +3658,19 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_SET_STREAM_OUTPUTS:
|
||||
{
|
||||
struct wined3d_cs_set_stream_outputs *op;
|
||||
|
||||
op = (struct wined3d_cs_set_stream_outputs *)packet->data;
|
||||
for (i = 0; i < ARRAY_SIZE(op->outputs); ++i)
|
||||
{
|
||||
if (op->outputs[i].buffer)
|
||||
wined3d_buffer_decref(op->outputs[i].buffer);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -3834,6 +3847,19 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_SET_STREAM_OUTPUTS:
|
||||
{
|
||||
struct wined3d_cs_set_stream_outputs *op;
|
||||
|
||||
op = (struct wined3d_cs_set_stream_outputs *)packet->data;
|
||||
for (i = 0; i < ARRAY_SIZE(op->outputs); ++i)
|
||||
{
|
||||
if (op->outputs[i].buffer)
|
||||
wined3d_buffer_incref(op->outputs[i].buffer);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue