main: Allow compute shaders to be compiled with OpenGLES 3.1
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 15 Dec 2015 23:44:11 +0000 (15:44 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 17 Dec 2015 04:35:55 +0000 (20:35 -0800)
Previous OpenGLES 3.1 testing had been done when ARB_compute_shader
was overridden to enabled.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
src/mesa/main/shaderapi.c

index a732d83397847b52e172b94d9495591bddcb74a9..e258ad9d1db1fb3a93589c3ba29d5c2bf21655be 100644 (file)
@@ -208,7 +208,7 @@ _mesa_validate_shader_target(const struct gl_context *ctx, GLenum type)
    case GL_TESS_EVALUATION_SHADER:
       return ctx == NULL || _mesa_has_tessellation(ctx);
    case GL_COMPUTE_SHADER:
-      return ctx == NULL || ctx->Extensions.ARB_compute_shader;
+      return ctx == NULL || _mesa_has_compute_shaders(ctx);
    default:
       return false;
    }