glsl: Enable split of lower UBOs and SSBO also for compute shaders
authorMarta Lofstedt <marta.lofstedt@intel.com>
Wed, 14 Oct 2015 11:35:32 +0000 (13:35 +0200)
committerMarta Lofstedt <marta.lofstedt@linux.intel.com>
Wed, 14 Oct 2015 14:05:42 +0000 (16:05 +0200)
commit93267887a06e760b4b20618523df5e8aa4e70307
tree11ca0ba5a768bfc1b35e3cc622b7eb438efe522d
parent5423c1e855c65ae6f562895791aac982141266db
glsl: Enable split of lower UBOs and SSBO also for compute shaders

The split of Uniform blocks and shader storage block only loops
up to MESA_SHADER_FRAGMENT and igonres compute shaders.
This cause segfault when running the OpenGL ES 3.1 CTS tests
with GL_ARB_compute_shader enabled.

V2: Changed to use MESA_SHADER_STAGES instead of
MESA_SHADER_COMPUTE

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Marta Lofstedt <marta.lofstedt@linux.intel.com>
src/glsl/linker.cpp