summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_vp_build.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-07-22 02:53:38 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-07-22 02:53:38 +0000
commit61e694f270d8a4a03a3245b5e6eea805915ed74b (patch)
tree1a0d95f224b5493df55b67f909d28561f367ca36 /src/mesa/tnl/t_vp_build.c
parentdb251d72c84256267cd1f7c062071a7143455048 (diff)
Make the vertex program source register Index field a signed int since
relative addressing can be negative. Change some GLuint indexes to GLint in the t_vp_build.c file. Added PROGRAM_UNDEFINED token for initializing the register File field to avoid a gcc 4.0 warning.
Diffstat (limited to 'src/mesa/tnl/t_vp_build.c')
-rw-r--r--src/mesa/tnl/t_vp_build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c
index 11fdc454cd..fc9fb15bd5 100644
--- a/src/mesa/tnl/t_vp_build.c
+++ b/src/mesa/tnl/t_vp_build.c
@@ -247,7 +247,7 @@ static struct state_key *make_state_key( GLcontext *ctx )
*/
struct ureg {
GLuint file:4;
- GLuint idx:8;
+ GLint idx:8; /* relative addressing may be negative */
GLuint negate:1;
GLuint swz:12;
GLuint pad:7;