mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
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 <cgmeiner@igalia.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40653>
This commit is contained in:
parent
dc0d6100f9
commit
81b8113a9f
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue