From: Yanjun Zhang Date: Sat, 16 Nov 2019 05:54:57 +0000 (-0800) Subject: Add two more formats with proper threshold values. X-Git-Tag: upstream/1.3.5~1624^2~3^2^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c370fabf157793d4042aa774f1c3e3ec29cf756;p=platform%2Fupstream%2FVK-GL-CTS.git Add two more formats with proper threshold values. 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 --- diff --git a/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp index 7f7b161..5b40017 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp @@ -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()),