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, 27 May 2020 11:47:35 +0000 (07:47 -0400)
commit590654f3cc9b77c50c1842aeeb6434358307b492
treea7013c5930c4dde282c547b502cfac84cbda9cc0
parentc9864165a1bd64b680f41ce055e4bfd089062753
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
(cherry picked from commit 49c720ff8c7b0bc397aeae7c9ee7e3e9c40b12f3)
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmGraphicsShaderTestUtil.cpp