mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests/d3d12: Set the descriptor heap when clearing UAVs.
This commit is contained in:
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
@@ -5730,6 +5730,8 @@ static void test_clear_unordered_access_view_buffer(void)
|
|||||||
ID3D12Device_CreateUnorderedAccessView(device, buffer, NULL, &uav_desc,
|
ID3D12Device_CreateUnorderedAccessView(device, buffer, NULL, &uav_desc,
|
||||||
get_cpu_descriptor_handle(&context, gpu_heap, 0));
|
get_cpu_descriptor_handle(&context, gpu_heap, 0));
|
||||||
|
|
||||||
|
ID3D12GraphicsCommandList_SetDescriptorHeaps(command_list, 1, &gpu_heap);
|
||||||
|
|
||||||
ID3D12GraphicsCommandList_ClearUnorderedAccessViewUint(command_list,
|
ID3D12GraphicsCommandList_ClearUnorderedAccessViewUint(command_list,
|
||||||
get_gpu_descriptor_handle(&context, gpu_heap, 1),
|
get_gpu_descriptor_handle(&context, gpu_heap, 1),
|
||||||
get_cpu_descriptor_handle(&context, cpu_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));
|
&uav_desc, get_cpu_descriptor_handle(&context, gpu_heap, j));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ID3D12GraphicsCommandList_SetDescriptorHeaps(command_list, 1, &gpu_heap);
|
||||||
|
|
||||||
for (j = 0; j < 4; ++j)
|
for (j = 0; j < 4; ++j)
|
||||||
{
|
{
|
||||||
clear_value[j] = tests[i].expected ? 0u : ~0u;
|
clear_value[j] = tests[i].expected ? 0u : ~0u;
|
||||||
|
Reference in New Issue
Block a user