glsl: Make `subroutine` a reserved keyword
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 10 Aug 2014 09:38:23 +0000 (21:38 +1200)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Jul 2015 07:25:23 +0000 (17:25 +1000)
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/glsl/glsl_lexer.ll

index fe0083fe74584b3522fdf3988f8f97a7a5b951cc..1cd1ffb98c6451f9a9efa6af9441e258156cba65 100644 (file)
@@ -579,7 +579,7 @@ usamplerBuffer      KEYWORD(140, 300, 140, 0, USAMPLERBUFFER);
     /* Additional reserved words in GLSL ES 3.00 */
 resource       KEYWORD(0, 300, 0, 0, RESOURCE);
 sample         KEYWORD_WITH_ALT(400, 300, 400, 0, yyextra->ARB_gpu_shader5_enable, SAMPLE);
-subroutine     KEYWORD(0, 300, 0, 0, SUBROUTINE);
+subroutine     KEYWORD_WITH_ALT(400, 300, 400, 0, yyextra->ARB_shader_subroutine_enable, SUBROUTINE);
 
 
 [_a-zA-Z][_a-zA-Z0-9]* {