tests/d3d12: Set the descriptor heap when clearing UAVs.

This commit is contained in:
Giovanni Mascellani
2025-04-12 12:02:36 +02:00
committed by Henri Verbeet
parent c764f71cf5
commit 4324817c68
Notes: Henri Verbeet 2025-04-21 14:51:29 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1464

View File

@@ -5730,6 +5730,8 @@ static void test_clear_unordered_access_view_buffer(void)
ID3D12Device_CreateUnorderedAccessView(device, buffer, NULL, &uav_desc,
get_cpu_descriptor_handle(&context, gpu_heap, 0));
ID3D12GraphicsCommandList_SetDescriptorHeaps(command_list, 1, &gpu_heap);
ID3D12GraphicsCommandList_ClearUnorderedAccessViewUint(command_list,
get_gpu_descriptor_handle(&context, gpu_heap, 1),
get_cpu_descriptor_handle(&context, cpu_heap, 1),
@@ -6053,6 +6055,8 @@ static void test_clear_unordered_access_view_image(void)
&uav_desc, get_cpu_descriptor_handle(&context, gpu_heap, j));
}
ID3D12GraphicsCommandList_SetDescriptorHeaps(command_list, 1, &gpu_heap);
for (j = 0; j < 4; ++j)
{
clear_value[j] = tests[i].expected ? 0u : ~0u;