wined3d: Acquire references to updated resources 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
7ea8192bb4
commit
06a5337f7b
|
@ -3684,6 +3684,15 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_UPDATE_SUB_RESOURCE:
|
||||
{
|
||||
struct wined3d_cs_update_sub_resource *op;
|
||||
|
||||
op = (struct wined3d_cs_update_sub_resource *)packet->data;
|
||||
wined3d_resource_decref(op->resource);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -3886,6 +3895,15 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_UPDATE_SUB_RESOURCE:
|
||||
{
|
||||
struct wined3d_cs_update_sub_resource *op;
|
||||
|
||||
op = (struct wined3d_cs_update_sub_resource *)packet->data;
|
||||
wined3d_resource_incref(op->resource);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue