diff options
author | Ian Romanick <[email protected]> | 2009-07-27 17:22:21 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2009-07-27 17:22:21 -0700 |
commit | aafd5762593aa01f2d612f4d769d1af383422c1c (patch) | |
tree | 89fae75fa23cda5c61a1ae713b749fd407a77afc /src/mesa/shader/program_lexer.l | |
parent | 41d5696628a5eef62cd671711b33edea9344977d (diff) |
ARB prog parser: Add support for GL_MESA_texture_array
This isn't really tested yet as no drivers actually support this extension.
Diffstat (limited to 'src/mesa/shader/program_lexer.l')
-rw-r--r-- | src/mesa/shader/program_lexer.l | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/shader/program_lexer.l b/src/mesa/shader/program_lexer.l index e4837ccb163..e1069ab4d7f 100644 --- a/src/mesa/shader/program_lexer.l +++ b/src/mesa/shader/program_lexer.l @@ -31,6 +31,7 @@ #define require_ARB_fp (yyextra->mode == ARB_fragment) #define require_shadow (yyextra->option.Shadow) #define require_rect (yyextra->option.TexRect) +#define require_texarray (yyextra->option.TexArray) #define return_token_or_IDENTIFIER(condition, token) \ do { \ @@ -299,6 +300,10 @@ RECT { return_token_or_IDENTIFIER(require_ARB_fp && require SHADOW1D { return_token_or_IDENTIFIER(require_ARB_fp && require_shadow, TEX_SHADOW1D); } SHADOW2D { return_token_or_IDENTIFIER(require_ARB_fp && require_shadow, TEX_SHADOW2D); } SHADOWRECT { return_token_or_IDENTIFIER(require_ARB_fp && require_shadow && require_rect, TEX_SHADOWRECT); } +ARRAY1D { return_token_or_IDENTIFIER(require_ARB_fp && require_texarray, TEX_ARRAY1D); } +ARRAY2D { return_token_or_IDENTIFIER(require_ARB_fp && require_texarray, TEX_ARRAY2D); } +ARRAYSHADOW1D { return_token_or_IDENTIFIER(require_ARB_fp && require_shadow && require_texarray, TEX_ARRAYSHADOW1D); } +ARRAYSHADOW2D { return_token_or_IDENTIFIER(require_ARB_fp && require_shadow && require_texarray, TEX_ARRAYSHADOW2D); } [_a-zA-Z$][_a-zA-Z0-9$]* { yylval->string = strdup(yytext); |