vkd3d: Return E_INVALIDARG if a descriptor range overflows.

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:
Conor McCarthy
2021-08-03 00:43:17 +10:00
committed by Alexandre Julliard
parent 50c4e43eaa
commit 1c96f76afc
2 changed files with 3 additions and 3 deletions

View File

@@ -2870,10 +2870,7 @@ static void test_root_signature_limits(void)
descriptor_ranges[0].NumDescriptors = 0x1001;
descriptor_ranges[0].OffsetInDescriptorsFromTableStart = 0xfffff000;
hr = create_root_signature(device, &root_signature_desc, &root_signature);
todo
ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
if (SUCCEEDED(hr))
ID3D12RootSignature_Release(root_signature);
refcount = ID3D12Device_Release(device);
ok(!refcount, "ID3D12Device has %u references left.\n", (unsigned int)refcount);