mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests/d3d12: Do not test 3D depth textures in test_get_copyable_footprints().
This commit is contained in:
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
@ -20229,6 +20229,7 @@ static void test_get_copyable_footprints(void)
|
||||
{
|
||||
DXGI_FORMAT format;
|
||||
bool is_compressed;
|
||||
bool is_depth;
|
||||
}
|
||||
formats[] =
|
||||
{
|
||||
@ -20244,8 +20245,8 @@ static void test_get_copyable_footprints(void)
|
||||
{DXGI_FORMAT_BC6H_UF16, true},
|
||||
{DXGI_FORMAT_BC6H_SF16, true},
|
||||
{DXGI_FORMAT_BC7_UNORM, true},
|
||||
{DXGI_FORMAT_D32_FLOAT, false},
|
||||
{DXGI_FORMAT_D24_UNORM_S8_UINT, false},
|
||||
{DXGI_FORMAT_D32_FLOAT, false, true},
|
||||
{DXGI_FORMAT_D24_UNORM_S8_UINT, false, true},
|
||||
};
|
||||
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)
|
||||
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)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user