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>
Thu, 2 Jun 2022 19:05:12 +0000 (19:05 +0000)
commit82e20ffb01ec2f613bd56a9f2a25bdd6bcf5b108
treeeb504ef52abf53dd1989589cb721f2ec3c3b7c4f
parent48b907ed5abf39ab348344804c61c43461db8712
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
(cherry picked from commit 23d62b971cec55ae49cddc9a9e37614bc9f80668)
modules/gles3/functional/es3fShaderOperatorTests.cpp