Fix compute shader in robustness tests to produce an output
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 11 May 2017 09:11:48 +0000 (11:11 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 22 May 2017 08:20:24 +0000 (10:20 +0200)
commit6383bc6dd4a60bc0e91ce876cbf9f064c553ff75
tree7fea453d09993413de4337dc09326c1e2d143dde
parentb9dae44ad0a8b499d722a1c8221786e5cece39f2
Fix compute shader in robustness tests to produce an output

The compute shader only writes to shared variables, which means
that it doesn't produce any useful output. Shader compiler
backends can see this and mark all uniform variables declared
by the shader as "inactive" and remove them, which would defeat
the purpose of the 'getnuniform' test and lead to a failure.
Fix this by making the compute shader write to a shader storage
buffer object instead, so that uniforms remain active for being
involved in generating a shader output.

Component: OpenGL
VK-GL-CTS issue: 415

Affects:
KHR-GL45.robustness.getnuniform

Change-Id: I67b3fd8eb3a63012b6c46713e17c86d51b42d82e
external/openglcts/modules/gl/gl4cRobustnessTests.cpp