Reduce expected precision of RGB10A2 filtering
authorGraeme Leese <gleese@broadcom.com>
Tue, 9 Apr 2019 11:25:19 +0000 (12:25 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 25 Apr 2019 09:21:55 +0000 (05:21 -0400)
The code in the YCbCr tests says that it was copied from the texture
explicit lod tests, but those tests give rgb10a2 a 'low' precision, not
'fp16'. Reduce the precision expected in the YCbCr tests.

Components: Vulkan
VK-GL-CTS Issue: 1731
Affects: dEQP-VK.ycbcr.*
         dEQP-VK.protected_memory.interaction.ycbcr.*

Change-Id: Ib0ae233fc271ded2f9987fe448dcd351e509a0c4

external/vulkancts/modules/vulkan/ycbcr/vktYCbCrUtil.cpp

index 929c1a9..e90a8ef 100644 (file)
@@ -1165,10 +1165,10 @@ tcu::FloatFormat getYCbCrFilteringPrecision (vk::VkFormat format)
                case vk::VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM:
                case vk::VK_FORMAT_G8_B8R8_2PLANE_422_UNORM:
                case vk::VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM:
-                       return low;
-
                case vk::VK_FORMAT_A2R10G10B10_UNORM_PACK32:
                case vk::VK_FORMAT_A2B10G10R10_UNORM_PACK32:
+                       return low;
+
                case vk::VK_FORMAT_R16G16B16_UNORM:
                case vk::VK_FORMAT_R16G16B16A16_UNORM:
                case vk::VK_FORMAT_R10X6_UNORM_PACK16: