mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Test a buffer larger than the destination heap.
As per vkd3d-proton commit 72d9b322, E_INVALIDARG should be returned to indicate the type of failure. Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b01104e47d
commit
7cd4cf8aba
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user