Mesa (asm-shader-rework-1): ARB prog lexer: attenuation is not just for vp

Ian Romanick idr at kemper.freedesktop.org
Thu Jul 30 03:44:24 UTC 2009


Module: Mesa
Branch: asm-shader-rework-1
Commit: cbe4133109c95fa6b90d8a601c78f043db456809
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cbe4133109c95fa6b90d8a601c78f043db456809

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Wed Jul 29 20:42:28 2009 -0700

ARB prog lexer: attenuation is not just for vp

---

 src/mesa/shader/lex.yy.c        |    2 +-
 src/mesa/shader/program_lexer.l |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/shader/lex.yy.c b/src/mesa/shader/lex.yy.c
index 6202ca4..0ff4bac 100644
--- a/src/mesa/shader/lex.yy.c
+++ b/src/mesa/shader/lex.yy.c
@@ -1769,7 +1769,7 @@ YY_RULE_SETUP
 case 85:
 YY_RULE_SETUP
 #line 239 "program_lexer.l"
-{ return_token_or_DOT(require_ARB_vp, ATTENUATION); }
+{ return ATTENUATION; }
 	YY_BREAK
 case 86:
 YY_RULE_SETUP
diff --git a/src/mesa/shader/program_lexer.l b/src/mesa/shader/program_lexer.l
index e1069ab..0597831 100644
--- a/src/mesa/shader/program_lexer.l
+++ b/src/mesa/shader/program_lexer.l
@@ -236,7 +236,7 @@ state                     { return STATE; }
 result                    { return RESULT; }
 
 {dot}ambient              { return AMBIENT; }
-{dot}attenuation          { return_token_or_DOT(require_ARB_vp, ATTENUATION); }
+{dot}attenuation          { return ATTENUATION; }
 {dot}back                 { return BACK; }
 {dot}clip                 { return_token_or_DOT(require_ARB_vp, CLIP); }
 {dot}color                { return COLOR; }




More information about the mesa-commit mailing list