aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/r300_maos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_maos.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_maos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_maos.c b/src/mesa/drivers/dri/r300/r300_maos.c
index 9cdcb414be5..bea58c9a4fc 100644
--- a/src/mesa/drivers/dri/r300/r300_maos.c
+++ b/src/mesa/drivers/dri/r300/r300_maos.c
@@ -368,7 +368,7 @@ void r300EmitArrays(GLcontext * ctx, GLboolean immd)
rmesa->state.aos[nr++].aos_reg = prog->inputs[VERT_ATTRIB_TEX0+i];
}
}
- for (i=0;i<(_TNL_LAST_GENERIC-_TNL_FIRST_GENERIC);i++) {
+ for (i = 0; i < _TNL_NUM_GENERIC; i++) {
if (InputsRead & (1<<(VERT_ATTRIB_GENERIC0+i))) {
RENDERINPUTS_SET( inputs_bitset, _TNL_ATTRIB_GENERIC(i) );
rmesa->state.aos[nr++].aos_reg = prog->inputs[VERT_ATTRIB_GENERIC0+i];
@@ -463,7 +463,8 @@ void r300EmitArrays(GLcontext * ctx, GLboolean immd)
r300->state.texture.tc_count++;
}
}
- for (i = 0; i < (_TNL_LAST_GENERIC-_TNL_FIRST_GENERIC); i++) {
+
+ for (i = 0; i < _TNL_NUM_GENERIC; i++) {
if (RENDERINPUTS_TEST( inputs_bitset, _TNL_ATTRIB_GENERIC(i) )) {
CONFIGURE_AOS(i_attrib[i], AOS_FORMAT_FLOAT,
VB->AttribPtr[VERT_ATTRIB_GENERIC0+i],