Fix format features required with samplerYcbcrConversion
authorsfricke_samsung <s.fricke@samsung.com>
Sun, 8 Mar 2020 12:14:24 +0000 (05:14 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 2 Apr 2020 08:12:34 +0000 (04:12 -0400)
According to the #formats-requiring-sampler-ycbcr-conversion section
of the Vulkan Spec VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT and
VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT are checked for the
current 2 formats that are required of samplerYcbcrConversion

Components: Vulkan

Affects: dEQP-VK.api.info.format_properties.*

VK-GL-CTS issue: 2264

Change-Id: I9e287c9ba9236088d40f78a8c0775488dd32da9c

external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp

index 7306e9f..912693a 100644 (file)
@@ -3311,7 +3311,9 @@ tcu::TestStatus ycbcrFormatProperties (Context& context, VkFormat format)
                {
                        const VkFormatFeatureFlags      required        = VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT
                                                                                                        | VK_FORMAT_FEATURE_TRANSFER_SRC_BIT
-                                                                                                       | VK_FORMAT_FEATURE_TRANSFER_DST_BIT;
+                                                                                                       | VK_FORMAT_FEATURE_TRANSFER_DST_BIT
+                                                                                                       | VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT
+                                                                                                       | VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT;
 
                        if ((supported & required) != required)
                        {