vkd3d: Reject 0 sample count textures in d3d12_resource_validate_desc().

Buffers with 0 sample counts were already rejected here.

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-15 01:37:40 +02:00
committed by Alexandre Julliard
parent a36dfef004
commit a86a681912
2 changed files with 7 additions and 3 deletions

View File

@@ -1703,9 +1703,7 @@ static void test_create_committed_resource(void)
resource_desc.SampleDesc.Count = 0;
hr = ID3D12Device_CreateCommittedResource(device, &heap_properties, D3D12_HEAP_FLAG_NONE, &resource_desc,
D3D12_RESOURCE_STATE_RENDER_TARGET, &clear_value, &IID_ID3D12Resource, (void **)&resource);
todo ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
if (SUCCEEDED(hr))
ID3D12Resource_Release(resource);
ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
resource_desc.SampleDesc.Count = 1;
hr = ID3D12Device_CreateCommittedResource(device, &heap_properties, D3D12_HEAP_FLAG_NONE,