projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24b0e50
)
glsl: Make `subroutine` a reserved keyword
author
Chris Forbes
<chrisf@ijw.co.nz>
Sun, 10 Aug 2014 09:38:23 +0000
(21:38 +1200)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/src/glsl/glsl_lexer.ll
b/src/glsl/glsl_lexer.ll
index fe0083fe74584b3522fdf3988f8f97a7a5b951cc..1cd1ffb98c6451f9a9efa6af9441e258156cba65 100644
(file)
--- a/
src/glsl/glsl_lexer.ll
+++ b/
src/glsl/glsl_lexer.ll
@@
-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]* {