wined3d: Acquire references to cleared unordered-access views 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-24 13:59:01 +01:00 committed by Alexandre Julliard
parent d5e13912b2
commit 4f7837a584
1 changed files with 18 additions and 0 deletions

View File

@ -3607,6 +3607,15 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
break; break;
} }
case WINED3D_CS_OP_CLEAR_UNORDERED_ACCESS_VIEW:
{
struct wined3d_cs_clear_unordered_access_view *op;
op = (struct wined3d_cs_clear_unordered_access_view *)packet->data;
wined3d_unordered_access_view_decref(op->view);
break;
}
default: default:
break; break;
} }
@ -3732,6 +3741,15 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
break; break;
} }
case WINED3D_CS_OP_CLEAR_UNORDERED_ACCESS_VIEW:
{
struct wined3d_cs_clear_unordered_access_view *op;
op = (struct wined3d_cs_clear_unordered_access_view *)packet->data;
wined3d_unordered_access_view_incref(op->view);
break;
}
default: default:
break; break;
} }