From 6a7eee33b57f90414ebbba6953faf963a1cc8105 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Fri, 26 Nov 2021 16:01:10 +0100 Subject: [PATCH] tests: Remove obsolete format feature check. BGRA8 UAV is allowed now. Signed-off-by: Hans-Kristian Arntzen --- tests/d3d12_device.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/tests/d3d12_device.c b/tests/d3d12_device.c index fc7c41e1..14d5ef9e 100644 --- a/tests/d3d12_device.c +++ b/tests/d3d12_device.c @@ -327,18 +327,6 @@ void test_format_support(void) unsigned int i; HRESULT hr; - static const struct - { - D3D12_FEATURE_DATA_FORMAT_SUPPORT f; - bool broken; - } - unsupported_format_features[] = - { - /* A recent version of WARP suppots B8G8R8A8 UAVs even on D3D_FEATURE_LEVEL_11_0. */ - {{DXGI_FORMAT_B8G8R8A8_TYPELESS, D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW, - D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD | D3D12_FORMAT_SUPPORT2_UAV_TYPED_STORE}, true}, - }; - if (!(device = create_device())) { skip("Failed to create device.\n"); @@ -354,23 +342,6 @@ void test_format_support(void) ok(!format_support.Support2 || format_support.Support2 == D3D12_FORMAT_SUPPORT2_TILED, "Got unexpected support2 %#x.\n", format_support.Support2); - for (i = 0; i < ARRAY_SIZE(unsupported_format_features); ++i) - { - memset(&format_support, 0, sizeof(format_support)); - format_support.Format = unsupported_format_features[i].f.Format; - hr = ID3D12Device_CheckFeatureSupport(device, D3D12_FEATURE_FORMAT_SUPPORT, - &format_support, sizeof(format_support)); - ok(hr == S_OK, "Got unexpected hr %#x.\n", hr); - ok(!(format_support.Support1 & unsupported_format_features[i].f.Support1) - || broken_on_warp(unsupported_format_features[i].broken), - "Format %#x supports %#x.\n", unsupported_format_features[i].f.Format, - format_support.Support1 & unsupported_format_features[i].f.Support1); - ok(!(format_support.Support2 & unsupported_format_features[i].f.Support2) - || broken_on_warp(unsupported_format_features[i].broken), - "Format %#x supports %#x.\n", unsupported_format_features[i].f.Format, - format_support.Support2 & unsupported_format_features[i].f.Support2); - } - for (i = 0; i < ARRAY_SIZE(depth_stencil_formats); ++i) { memset(&format_support, 0, sizeof(format_support));