Fix rgba10x6 feature check in texture filtering tests
authorziga-lunarg <ziga@lunarg.com>
Fri, 6 Jan 2023 17:09:46 +0000 (18:09 +0100)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Fri, 27 Jan 2023 10:13:56 +0000 (10:13 +0000)
If VK_IMAGE_USAGE_SAMPLED_BIT is used when creating the image
VkSamplerYcbcrConversionInfo is required in the pNext chain, if format
is  VK_FORMAT_R10XgG10X6B10X6A10X6_UNORM_4PACK16 and
formatRgba10x6WithoutYCbCrSampler feature is not enabled

Components: Vulkan

VK-GL-CTS issue: 4206

Affected tests:
dEQP-VK.texture.filtering.*

Change-Id: I296ac69902f87b301f4e2930d28b171e8ce02a13

external/vulkancts/modules/vulkan/texture/vktTextureFilteringTests.cpp

index 9b47135..dc69ea2 100644 (file)
@@ -109,7 +109,7 @@ void checkTextureSupport (Context& context, const Texture2DTestCaseParameters& t
                context.requireDeviceFunctionality("VK_KHR_sampler_mirror_clamp_to_edge");
 
 #ifndef CTS_USES_VULKANSC
-       if (testParameters.format == VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16 && testParameters.mipmaps && context.getRGBA10X6FormatsFeaturesEXT().formatRgba10x6WithoutYCbCrSampler == VK_FALSE)
+       if (testParameters.format == VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16 && context.getRGBA10X6FormatsFeaturesEXT().formatRgba10x6WithoutYCbCrSampler == VK_FALSE)
                TCU_THROW(NotSupportedError, "formatRgba10x6WithoutYCbCrSampler not supported");
 #endif
 }