tests: Acknowledge WARP giving a GPU handle to a non-shader-visible descriptor heap.

WARP has no GPU, so it probably treats GPU handles just like CPU handles.
This commit is contained in:
Giovanni Mascellani 2023-10-13 13:47:13 +02:00 committed by Alexandre Julliard
parent 862dcf27a6
commit 3f87cf9d7f
Notes: Alexandre Julliard 2023-10-16 23:00:18 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/406

View File

@ -2451,7 +2451,7 @@ static void test_create_descriptor_heap(void)
ok(hr == S_OK, "Failed to create descriptor heap, hr %#x.\n", hr); ok(hr == S_OK, "Failed to create descriptor heap, hr %#x.\n", hr);
gpu_handle = ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(heap); gpu_handle = ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(heap);
ok(!gpu_handle.ptr, "Got unexpected ptr %"PRIx64".\n", gpu_handle.ptr); ok(!gpu_handle.ptr || broken(test_options.use_warp_device), "Got unexpected ptr %"PRIx64".\n", gpu_handle.ptr);
refcount = get_refcount(device); refcount = get_refcount(device);
ok(refcount == 2, "Got unexpected refcount %u.\n", (unsigned int)refcount); ok(refcount == 2, "Got unexpected refcount %u.\n", (unsigned int)refcount);