diff options
author | Marta Lofstedt <[email protected]> | 2015-08-10 13:04:42 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2015-08-19 13:41:43 +0300 |
commit | 2438e2fe326d7cb9f9d003f6edf77821e41ef22c (patch) | |
tree | 54ebe5938a690bdc890a04932e762f5729208ae7 /src/glsl/glsl_parser.yy | |
parent | 3df7856b4625f21ebf5465bad2556583b808c8bf (diff) |
glsl: Fix up GL_ARB_compute_shader for GLSL ES 3.1
GL_ARB_compute_shader is limited for GLSL version 430.
This enables for GLSL ES version 310.
V2: Updated error string to also include GLSL 3.10
Signed-off-by: Marta Lofstedt <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser.yy')
-rw-r--r-- | src/glsl/glsl_parser.yy | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index 2b0c8bd8c6f..7a4b55c6f2b 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -1519,11 +1519,10 @@ layout_qualifier_id: "invalid %s of %d specified", local_size_qualifiers[i], $3); YYERROR; - } else if (!state->is_version(430, 0) && - !state->ARB_compute_shader_enable) { + } else if (!state->has_compute_shader()) { _mesa_glsl_error(& @3, state, "%s qualifier requires GLSL 4.30 or " - "ARB_compute_shader", + "GLSL ES 3.10 or ARB_compute_shader", local_size_qualifiers[i]); YYERROR; } else { |