tests/d3d12: Do not test 3D depth textures in test_get_copyable_footprints().

This commit is contained in:
Conor McCarthy 2024-04-20 13:20:02 +10:00 committed by Alexandre Julliard
parent bb2a79a8fb
commit 42eee382ec
Notes: Alexandre Julliard 2024-05-22 23:00:11 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/815

View File

@ -20229,6 +20229,7 @@ static void test_get_copyable_footprints(void)
{ {
DXGI_FORMAT format; DXGI_FORMAT format;
bool is_compressed; bool is_compressed;
bool is_depth;
} }
formats[] = formats[] =
{ {
@ -20244,8 +20245,8 @@ static void test_get_copyable_footprints(void)
{DXGI_FORMAT_BC6H_UF16, true}, {DXGI_FORMAT_BC6H_UF16, true},
{DXGI_FORMAT_BC6H_SF16, true}, {DXGI_FORMAT_BC6H_SF16, true},
{DXGI_FORMAT_BC7_UNORM, true}, {DXGI_FORMAT_BC7_UNORM, true},
{DXGI_FORMAT_D32_FLOAT, false}, {DXGI_FORMAT_D32_FLOAT, false, true},
{DXGI_FORMAT_D24_UNORM_S8_UINT, false}, {DXGI_FORMAT_D24_UNORM_S8_UINT, false, true},
}; };
static const uint64_t base_offsets[] = static const uint64_t base_offsets[] =
{ {
@ -20328,6 +20329,9 @@ static void test_get_copyable_footprints(void)
{ {
if (formats[j].is_compressed && !resources[i].test_with_compressed) if (formats[j].is_compressed && !resources[i].test_with_compressed)
continue; continue;
/* Depth formats are not supported for 3D textures in any current feature level including 12.1. */
if (formats[j].is_depth && resources[i].dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D)
continue;
if (is_buffer && j > 0) if (is_buffer && j > 0)
continue; continue;