From 2438e2fe326d7cb9f9d003f6edf77821e41ef22c Mon Sep 17 00:00:00 2001 From: Marta Lofstedt Date: Mon, 10 Aug 2015 13:04:42 +0200 Subject: 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 Reviewed-by: Matt Turner --- src/glsl/glsl_parser_extras.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/glsl/glsl_parser_extras.h') diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h index eb325f0..57a7555 100644 --- a/src/glsl/glsl_parser_extras.h +++ b/src/glsl/glsl_parser_extras.h @@ -236,6 +236,11 @@ struct _mesa_glsl_parse_state { return ARB_shading_language_420pack_enable || is_version(420, 0); } + bool has_compute_shader() const + { + return ARB_compute_shader_enable || is_version(430, 310); + } + void process_version_directive(YYLTYPE *locp, int version, const char *ident); -- cgit v1.1