From 3678482f1e834cd12b17fd0bbd18d7ba2de34a9f Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 4 Dec 2023 13:57:21 +0100 Subject: [PATCH] radv: set combinedImageSamplerDescriptorCount to 1 for multi-planar formats RADV compacts all descriptors for multi-planar images into one combined image sampler, so it should be 96, and not eg. 192 for a two planes format. Fixes new CTS dEQP-VK.binding_model.descriptor_buffer.ycbcr_sampler.*array. Cc: mesa-stable 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 5646a8fa1e5..235af071ae1 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -1699,7 +1699,7 @@ radv_GetPhysicalDeviceImageFormatProperties2(VkPhysicalDevice physicalDevice, } if (ycbcr_props) { - ycbcr_props->combinedImageSamplerDescriptorCount = vk_format_get_plane_count(format); + ycbcr_props->combinedImageSamplerDescriptorCount = 1; } if (texture_lod_props) {