wined3d: Acquire references to constant 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
e7810388e2
commit
d5e13912b2
|
@ -3594,6 +3594,19 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WINED3D_CS_OP_SET_CONSTANT_BUFFERS:
|
||||||
|
{
|
||||||
|
struct wined3d_cs_set_constant_buffers *op;
|
||||||
|
|
||||||
|
op = (struct wined3d_cs_set_constant_buffers *)packet->data;
|
||||||
|
for (i = 0; i < op->count; ++i)
|
||||||
|
{
|
||||||
|
if (op->buffers[i].buffer)
|
||||||
|
wined3d_buffer_decref(op->buffers[i].buffer);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -3706,6 +3719,19 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WINED3D_CS_OP_SET_CONSTANT_BUFFERS:
|
||||||
|
{
|
||||||
|
struct wined3d_cs_set_constant_buffers *op;
|
||||||
|
|
||||||
|
op = (struct wined3d_cs_set_constant_buffers *)packet->data;
|
||||||
|
for (i = 0; i < op->count; ++i)
|
||||||
|
{
|
||||||
|
if (op->buffers[i].buffer)
|
||||||
|
wined3d_buffer_incref(op->buffers[i].buffer);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue