glsl-1.10: fix glsl-fs-conditional-output-write test
commit5e7d4a7b1df385f1e2b08b2b81d75f039e8be64b
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 31 May 2022 02:54:50 +0000 (31 12:54 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 31 May 2022 03:17:11 +0000 (31 13:17 +1000)
tree1e9f0dc1acdbb8c0b6be5d4a54d3c18d68d0d7e7
parent07d1614319a9f3578c0c2b64a12f46ab53db8f1d
glsl-1.10: fix glsl-fs-conditional-output-write test

Here we make sure gl_FragColor.x is always given a value. Otherwise
the if (b) check, the coord uniform etc can all be optimised away
because gl_FragColor.x can simply always be set to 1.0 as anything
else is undefined.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/690>
tests/spec/glsl-1.10/execution/glsl-fs-conditional-output-write.shader_test