Fix NaN handling in funord tests
authorStephen Clarke <stephen.clarke@imgtec.com>
Mon, 14 Jan 2019 16:31:18 +0000 (16:31 +0000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 18 Jan 2019 08:53:39 +0000 (03:53 -0500)
commitacafd1d389d1d18d4e4410862d96064f9fca551e
tree94498cd65ae94fc67bce25dd2e42e8c5a3086dd0
parent845394de5b43c71adddc72e7563b50c65e852b27
Fix NaN handling in funord tests

Support of NaNs is optional according to the specification, but
these tests were assuming that NaNs are always supported.
Modify these tests to skip check if an operand is a NaN.

Add infrastructure for a new set of tests opfunord_nan*, which
use VK_KHR_shader_float_controls to check whether NaNs are supported.
But since this is a bugfix, do not actually add the new tests.

Affected tests:
* dEQP-VK.spirv_assembly.instruction.compute.opfunord*

Components: Vulkan

VK-GL-CTS issue: 1551
Change-Id: Ic60f13377ff9d2bdc2e10047aab8be0617904670
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmComputeShaderTestUtil.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmComputeShaderTestUtil.hpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp