Fix shader operator tests' precision expectation
authorShahbaz Youssefi <syoussefi@google.com>
Mon, 22 Nov 2021 20:30:26 +0000 (15:30 -0500)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 3 Dec 2021 01:10:09 +0000 (01:10 +0000)
commit97ceb2222747fef380d25acd15638b599fbc1d5a
treee4380391a35614d1f040ab82d3f3ab995816c9cf
parent465b9c08be8a79117d6eda9d990de10ea7743197
Fix shader operator tests' precision expectation

es3fShaderOperatorTests.cpp takes the reported precision for lowp and
mediump (through glGetShaderPrecisionFormat) and tests that that many
bits are actually supported by the type.

glGetShaderPrecisionFormat is a legacy function that's not very
meaningful on modern hardware (see Vulkan issue #2931), and there is no
equivalent for its functionality in Vulkan.

This relevant tests are changed such that the test now verifies that _at
least_ that many bits are used in lowp and mediump operations, rather
than _exactly_.  This aligns with the semantics of RelaxedPrecision in
SPIR-V.

Affected tests:
dEQP-GLES3.functional.shaders.operator.*

Components: OpenGL ES
VK-GL-CTS issue: 3344

Change-Id: I88a38d6ee067de8313f25327578c6666c257dc8b
modules/gles3/functional/es3fShaderOperatorTests.cpp