vkd3d: Reject descriptor tables containing register collisions.

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-10-06 18:43:29 +02:00
committed by Alexandre Julliard
parent c5fdd2f404
commit d3090699c5
2 changed files with 38 additions and 3 deletions

View File

@@ -2674,9 +2674,7 @@ static void test_create_root_signature(void)
descriptor_ranges[1].BaseShaderRegister = 7;
descriptor_ranges[1].OffsetInDescriptorsFromTableStart = 8;
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);
ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
/* Identical ranges and register indices but different type. */
descriptor_ranges[1] = descriptor_ranges[0];