diff options
author | Ian Romanick <[email protected]> | 2009-07-27 16:24:49 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2009-07-27 16:24:49 -0700 |
commit | 1edd13bf23c7a9dad00420f519a35f75b27e853b (patch) | |
tree | d13dcc3a11e2f712d80b77f3c504dad144c9835c /src/mesa/shader/program_lexer.l | |
parent | 88018e2e073909ae807f16707f2701e068900926 (diff) |
ARB prog parser: Add support for GL_ARB_fragment_program_shadow
Passes the piglit asmparsertest shadow-0[123].txt tests and
progs/demos/shadowtex.
Diffstat (limited to 'src/mesa/shader/program_lexer.l')
-rw-r--r-- | src/mesa/shader/program_lexer.l | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/program_lexer.l b/src/mesa/shader/program_lexer.l index 2a5f0a85420..e4837ccb163 100644 --- a/src/mesa/shader/program_lexer.l +++ b/src/mesa/shader/program_lexer.l @@ -29,6 +29,7 @@ #define require_ARB_vp (yyextra->mode == ARB_vertex) #define require_ARB_fp (yyextra->mode == ARB_fragment) +#define require_shadow (yyextra->option.Shadow) #define require_rect (yyextra->option.TexRect) #define return_token_or_IDENTIFIER(condition, token) \ @@ -295,6 +296,9 @@ texture { return_token_or_IDENTIFIER(require_ARB_fp, TEXTURE_U 3D { return_token_or_IDENTIFIER(require_ARB_fp, TEX_3D); } CUBE { return_token_or_IDENTIFIER(require_ARB_fp, TEX_CUBE); } RECT { return_token_or_IDENTIFIER(require_ARB_fp && require_rect, TEX_RECT); } +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); } [_a-zA-Z$][_a-zA-Z0-9$]* { yylval->string = strdup(yytext); |