From 0fa74e848fd11c71bb70ea0a69650944e4f07571 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Mon, 6 Jan 2014 09:09:31 -0800 Subject: glsl/cs: Handle compute shader local_size_{x,y,z} declaration. Reviewed-by: Jordan Justen --- src/glsl/glsl_lexer.ll | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/glsl/glsl_lexer.ll') diff --git a/src/glsl/glsl_lexer.ll b/src/glsl/glsl_lexer.ll index 50875bf3b23..3208b32dae5 100644 --- a/src/glsl/glsl_lexer.ll +++ b/src/glsl/glsl_lexer.ll @@ -349,7 +349,8 @@ layout { || yyextra->ARB_explicit_attrib_location_enable || yyextra->ARB_uniform_buffer_object_enable || yyextra->ARB_fragment_coord_conventions_enable - || yyextra->ARB_shading_language_420pack_enable) { + || yyextra->ARB_shading_language_420pack_enable + || yyextra->ARB_compute_shader_enable) { return LAYOUT_TOK; } else { yylval->identifier = strdup(yytext); -- cgit v1.2.3