Module: vkd3d Branch: master Commit: 42eee382ec8e4b99c07593fb9051a38c99422abf URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/42eee382ec8e4b99c07593fb9051a3...
Author: Conor McCarthy cmccarthy@codeweavers.com Date: Sat Apr 20 13:20:02 2024 +1000
tests/d3d12: Do not test 3D depth textures in test_get_copyable_footprints().
---
tests/d3d12.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/d3d12.c b/tests/d3d12.c index de7db0d7..2e69cb71 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -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;