glsl: Make `subroutine` a reserved keyword
[mesa.git] / 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]* {