Add two more formats with proper threshold values.
authorYanjun Zhang <yanjun.zhang@verisilicon.com>
Sat, 16 Nov 2019 05:54:57 +0000 (21:54 -0800)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 5 Dec 2019 07:45:47 +0000 (02:45 -0500)
Need to add two more formats with proper threshold values in
vkApiCopiesAndBlittingTests.cpp: getFormatThreshold() to make
CTS pass on some VSI mobile GPUs.

Affects:
dEQP-VK.api.copy_and_blit.core.blit_image.simple_tests.*
dEQP-VK.api.copy_and_blit.core.blit_image.all_formats.*
dEQP-VK.api.copy_and_blit.dedicated_allocation.blit_image.*

Components: Vulkan

VK-GL-CTS issue: 2112

Change-Id: Ia3a314fd825ed13c44e49720fffffa2dff8f26af

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

index 7f7b1611924fbd017dbc2c8219738ec063c3f707..5b400179ac83bf7ddc6cdcc1a8bafa0126f0c137 100644 (file)
@@ -1952,6 +1952,14 @@ tcu::Vec4 getFormatThreshold (const tcu::TextureFormat& format)
                threshold = tcu::Vec4(0.05f, 0.05f, 0.05f, 1.0f);
                break;
 
+       case tcu::TextureFormat::UNORM_INT_1010102_REV:
+               threshold = tcu::Vec4(0.002f, 0.002f, 0.002f, 0.3f);
+               break;
+
+       case tcu:: TextureFormat::UNORM_INT8:
+               threshold = tcu::Vec4(0.008f, 0.008f, 0.008f, 0.008f);
+               break;
+
        default:
                const tcu::IVec4 bits = tcu::getTextureFormatMantissaBitDepth(format);
                threshold = tcu::Vec4(calculateFloatConversionError(bits.x()),