Allow RTZ rounding in spv_assembly*writes_two_buffers* tests
authorKyle Griffiths <Kyle.Griffiths@imgtec.com>
Fri, 17 Apr 2020 11:26:54 +0000 (12:26 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 29 Apr 2020 09:41:29 +0000 (05:41 -0400)
commit49c720ff8c7b0bc397aeae7c9ee7e3e9c40b12f3
tree3fefd2c8941733ea9d2241d344a77014598fdc48
parentf7384428f3938b6498b04faf2b460cb0e4369c13
Allow RTZ rounding in spv_assembly*writes_two_buffers* tests

Because the tests perform an add operation, mismatch of the CPU and GPU
rounding modes can cause the tests to incorrectly fail.
This change modifies the verification to allow up to 1 ULP difference
between the output and the expected result, which covers the maximum
difference between RNE and RTZ rounding modes.

Components: Vulkan

Affects: dEQP-VK.spirv_assembly.instruction.graphics*

VK-GL-CTS issue: 2320

Change-Id: Ic76942add1382c23885118f806ac593cc730eb73
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmGraphicsShaderTestUtil.cpp