From ce053ecf9ec8f924dc523d7754212abd3f76c0eb Mon Sep 17 00:00:00 2001 From: Tom Cooper Date: Fri, 8 Feb 2019 14:14:40 +0000 Subject: [PATCH] Fixes YCbCr create flag requirements for image format properties tests YCbCr formats are not required to support VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT. Components: Vulkan Affects: dEQP-VK.api.info.image_format_properties.* VK-GL-CTS Issue: 1592 Change-Id: I140f6b93a337d325fd908259f3da2dc1f4d251d9 --- external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp b/external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp index c2ce45e..1ce60eb 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp @@ -2288,8 +2288,10 @@ VkImageCreateFlags getValidImageCreateFlags (const VkPhysicalDeviceFeatures& dev { flags |= VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT; - if (type == VK_IMAGE_TYPE_2D) + if (type == VK_IMAGE_TYPE_2D && !isYCbCrFormat(format)) + { flags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT; + } } if (isYCbCrFormat(format) && getPlaneCount(format) > 1) -- 2.7.4