summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_lexer.ll
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2014-01-06 09:09:31 -0800
committerPaul Berry <stereotype441@gmail.com>2014-02-05 09:03:44 -0800
commit0fa74e848fd11c71bb70ea0a69650944e4f07571 (patch)
treee9b9cd5e6888095286ce703847548cdf98528f02 /src/glsl/glsl_lexer.ll
parent0398b69954eb8e73e9ae663ce200170ff70d216d (diff)
downloadexternal_mesa3d-0fa74e848fd11c71bb70ea0a69650944e4f07571.zip
external_mesa3d-0fa74e848fd11c71bb70ea0a69650944e4f07571.tar.gz
external_mesa3d-0fa74e848fd11c71bb70ea0a69650944e4f07571.tar.bz2
glsl/cs: Handle compute shader local_size_{x,y,z} declaration.
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'src/glsl/glsl_lexer.ll')
-rw-r--r--src/glsl/glsl_lexer.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/glsl_lexer.ll b/src/glsl/glsl_lexer.ll
index 50875bf..3208b32 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);