Improve precision handling in tests with FragCoord
authorArkadiusz Sarwa <arkadiusz.sarwa@mobica.com>
Mon, 13 Feb 2017 09:24:26 +0000 (10:24 +0100)
committerPyry Haulos <phaulos@google.com>
Thu, 9 Mar 2017 22:44:35 +0000 (17:44 -0500)
commit3f01dd107eb1f1fbba0a2170863ce5bed530ad2f
tree0f320844da1dee304e8a304c8c2f6463a84b2fc8
parent6c34ff1c06659d4b26e122afdca2e672ebd107c3
Improve precision handling in tests with FragCoord

The tests for gl_FragCoord are not accurate enough, these tests pass
event for invalid driver. The comparison is made on RGBA8 surfaces,
it is not accurate enough for the tests.

The fix makes comparison more precise for the tests.

Modified tests:
dEQP-VK.glsl.builtin_var.simple.fragcoord_xyz
dEQP-VK.glsl.builtin_var.simple.fragcoord_w

Components: Vulkan
VK-GL-CTS issue: 77

Change-Id: I34ba77e696524215468202ef3fe77d1284e3e3df
external/vulkancts/modules/vulkan/shaderrender/vktShaderRenderBuiltinVarTests.cpp