wined3d: Acquire references to unordered-access view counter 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:
Jan Sikorski 2022-01-26 15:43:37 +01:00 committed by Alexandre Julliard
parent 51c10cbc33
commit a33ed42ffe
1 changed files with 20 additions and 0 deletions

View File

@ -3704,6 +3704,16 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
break; break;
} }
case WINED3D_CS_OP_COPY_UAV_COUNTER:
{
struct wined3d_cs_copy_uav_counter *op;
op = (struct wined3d_cs_copy_uav_counter *)packet->data;
wined3d_buffer_decref(op->buffer);
wined3d_unordered_access_view_decref(op->view);
break;
}
default: default:
break; break;
} }
@ -3926,6 +3936,16 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
break; break;
} }
case WINED3D_CS_OP_COPY_UAV_COUNTER:
{
struct wined3d_cs_copy_uav_counter *op;
op = (struct wined3d_cs_copy_uav_counter *)packet->data;
wined3d_buffer_incref(op->buffer);
wined3d_unordered_access_view_incref(op->view);
break;
}
default: default:
break; break;
} }