glsl-1.30: Test uint to float conversion of sign extended value
commit8d5af6c51f5a32cb12b5bb4554e9db0c33a293a7
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 29 Feb 2024 02:25:24 +0000 (28 18:25 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 3 May 2024 22:52:29 +0000 (3 15:52 -0700)
tree1d9ee66a73898763b08a4d4435adf9d3cb6ab017
parent7aa7bc1b01d57b4b091c4fc82a94a6ff47f38ebf
glsl-1.30: Test uint to float conversion of sign extended value

Intel compiler has a very old optimization for various combination
of u2f or i2f of an extract_* source. However, the variations that
do u2f of an extract_i* are incorrect.

Intel drivers with the known bug will produce blue.

v2: Use 0x000000ff in the int8 test to match the int16 test. Suggested
by Caio.

v3: Update header comment to explain why two possible incorrect values
are checked. Suggested by Caio.

Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/883>
tests/spec/glsl-1.30/execution/fs-uint-to-float-of-extract-int16.shader_test [new file with mode: 0644]
tests/spec/glsl-1.30/execution/fs-uint-to-float-of-extract-int8.shader_test [new file with mode: 0644]