glsl: Add compute shader builtin variables for OpenGLES 3.1
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 14 Oct 2015 00:18:52 +0000 (17:18 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Sun, 1 Nov 2015 06:08:09 +0000 (23:08 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
src/glsl/builtin_variables.cpp

index 925ffa165bb6ba39e493562fac630fa87a75446a..c30fb9226e57868aae5244f54fa00346c4cac061 100644 (file)
@@ -710,7 +710,7 @@ builtin_variable_generator::generate_constants()
       }
    }
 
-   if (state->is_version(430, 0) || state->ARB_compute_shader_enable) {
+   if (state->is_version(430, 310) || state->ARB_compute_shader_enable) {
       add_const("gl_MaxComputeAtomicCounterBuffers", MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS);
       add_const("gl_MaxComputeAtomicCounters", MAX_COMPUTE_ATOMIC_COUNTERS);
       add_const("gl_MaxComputeImageUniforms", MAX_COMPUTE_IMAGE_UNIFORMS);