From 000e5e5b71561a9f4ff411219f034cb72879b56f Mon Sep 17 00:00:00 2001 From: Boris Zanin Date: Wed, 17 Oct 2018 15:50:49 +0200 Subject: [PATCH] Remove NaN from OpFOrd* and OpFUnord* tests Due to Vulkan specification enables NaNs to be unsupported by implementation, the NaN values cannot be processed. As it is quite complicated to remove NaNs from tested values stream this fix just blocks their analysis. Following instructions are not fully tested now: * OpFOrdEqual * OpFOrdGreaterThan * OpFOrdLessThan * OpFOrdGreaterThanEqual * OpFOrdLessThanEqual * OpFUnordEqual * OpFUnordGreaterThan * OpFUnordLessThan * OpFUnordGreaterThanEqual * OpFUnordLessThanEqual Affected tests: * dEQP-VK.glsl.builtin.precision.comparison.mediump_compute.* * dEQP-VK.glsl.builtin.precision.comparison.highp_compute.* * dEQP-VK.glsl.builtin.precision_fp16_storage16b.comparison.compute.* * dEQP-VK.glsl.builtin.precision_fp16_storage32b.comparison.compute.* Components: Vulkan VK-GL-CTS issue: 1423 Change-Id: Ic64cfdbe23d796de90dae0931109421ded2b526a --- .../modules/vulkan/shaderexecutor/vktShaderBuiltinPrecisionTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/shaderexecutor/vktShaderBuiltinPrecisionTests.cpp b/external/vulkancts/modules/vulkan/shaderexecutor/vktShaderBuiltinPrecisionTests.cpp index 6efb8fd..05e3b11 100644 --- a/external/vulkancts/modules/vulkan/shaderexecutor/vktShaderBuiltinPrecisionTests.cpp +++ b/external/vulkancts/modules/vulkan/shaderexecutor/vktShaderBuiltinPrecisionTests.cpp @@ -2311,7 +2311,7 @@ public: DE_UNREF(ctx); if (iargs.a.hasNaN() || iargs.b.hasNaN()) { - return 0x3E0; // one of the floats is NaN, constant result + return TCU_NAN; // one of the floats is NaN: block analysis } int operationFlag = 1; -- 2.7.4