From c1373239f2d793a993c1c074439701e4513e4a15 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 9 May 2024 16:28:28 +0200 Subject: [PATCH] radv: allow STORAGE for depth formats Pass all new VKCTS test coverage for D16/D32. Tested on PITCAIRN, POLARIS10, VEGA10 and NAVI21. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_formats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index 94440989683..2a9c3078ce4 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -113,7 +113,7 @@ radv_is_storage_image_format_supported(const struct radv_physical_device *pdev, if (format == VK_FORMAT_UNDEFINED) return false; - if (vk_format_is_depth_or_stencil(format)) + if (vk_format_has_stencil(format)) return false; data_format = radv_translate_tex_dataformat(pdev, desc, vk_format_get_first_non_void_channel(format));