Loosen color target tolerances for some tests
authorMichael Chock <mchock@nvidia.com>
Tue, 16 Jan 2018 22:57:49 +0000 (14:57 -0800)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 1 Feb 2018 11:57:54 +0000 (06:57 -0500)
commit881517b3030a4ed1dcfdb241f67049d625fbd97f
tree5b994155f06af15a95e45ee956c32da82f02d657
parentf73093271e49deed2d3cce20a4799e35341dd251
Loosen color target tolerances for some tests

Some tests verify the results of glReadPixels within two bits of
tolerance. However, some pixel formats (e.g., RGB 565) cannot support
such precision. Loosen hard-coded tolerances, such that tests can pass
with 5-bit color channels.

Additionally change the types of some variables from GLubyte to int. Log
messages constructed through stream operators would treat such values as
characters, rather than numeric quantities.

Components: OpenGL

VK-GL-CTS issue: 950

Affects:
KHR-GL46.indirect_parameters_tests.MultiDrawArraysIndirectCount
KHR-GL46.indirect_parameters_tests.MultiDrawElementsIndirectCount
KHR-GL46.shader_atomic_counter_ops_tests.*
KHR-GL46.shader_viewport_layer_array.*

Change-Id: I7da30842004caf1698d83128678c1bda82fff787
external/openglcts/modules/gl/gl4cIndirectParametersTests.cpp
external/openglcts/modules/gl/gl4cShaderAtomicCounterOpsTests.cpp
external/openglcts/modules/gl/gl4cShaderViewportLayerArrayTests.cpp