[PATCH vkd3d 1/2] tests: Test a buffer larger than the destination heap.
Conor McCarthy
cmccarthy at codeweavers.com
Sun Jul 25 22:47:38 CDT 2021
As per vkd3d-proton commit 72d9b322, E_INVALIDARG should be returned to
indicate the type of failure.
Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
---
tests/d3d12.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/d3d12.c b/tests/d3d12.c
index 3a1a72a8..03bae895 100644
--- a/tests/d3d12.c
+++ b/tests/d3d12.c
@@ -2286,6 +2286,13 @@ static void test_create_placed_resource(void)
&IID_ID3D12Resource, (void **)&resource);
ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
+ /* Buffer + offset too large for the heap. */
+ hr = ID3D12Device_CreatePlacedResource(device, heap, heap_desc.SizeInBytes,
+ &resource_desc, D3D12_RESOURCE_STATE_COMMON, NULL,
+ &IID_ID3D12Resource, (void **)&resource);
+ todo
+ ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
+
ID3D12Heap_Release(heap);
for (i = 0; i < ARRAY_SIZE(invalid_buffer_desc_tests); ++i)
--
2.32.0
More information about the wine-devel
mailing list