From 81b8113a9f3381979c6f523b4755a298ee2bb7ef Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Wed, 15 Apr 2026 10:28:45 +0200 Subject: [PATCH] radv: Don't advertise any features for R10X6G10X6B10X6A10X6_UNORM_4PACK16 The recent addition of PIPE_FORMAT_X6R10X6G10X6B10X6A10_UNORM caused vk_format_to_pipe_format() to map VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16 to a real pipe format, which made radv_physical_device_get_format_properties() advertise BLIT_SRC/SAMPLED_IMAGE for it. The hardware samples the data as plain R16G16B16A16 UNORM, which doesn't match the 10-bit UNORM semantics the spec (and CTS) require, so dEQP-VK.api.copy_and_blit.core.blit_image.* tests with r10x6g10x6b10x6a10x6_unorm_4pack16 as the source started failing on gfx1201. Override the mapping to PIPE_FORMAT_NONE so RADV reports zero format features, matching the behavior prior to the new pipe format being added. Proper support can be restored once VK_EXT_rgba10x6_formats is implemented. Signed-off-by: Christian Gmeiner Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_formats.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/vulkan/radv_formats.h b/src/amd/vulkan/radv_formats.h index 92321f3e144..1398dadfbba 100644 --- a/src/amd/vulkan/radv_formats.h +++ b/src/amd/vulkan/radv_formats.h @@ -29,6 +29,8 @@ radv_format_to_pipe_format(VkFormat vkformat) case VK_FORMAT_R10X6G10X6_UNORM_2PACK16: case VK_FORMAT_R12X4G12X4_UNORM_2PACK16: return PIPE_FORMAT_R16G16_UNORM; + case VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16: + return PIPE_FORMAT_NONE; default: return vk_format_to_pipe_format(vkformat); }