r600: minor cleanup
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 19 Aug 2009 14:31:17 +0000 (10:31 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Wed, 19 Aug 2009 15:59:03 +0000 (11:59 -0400)
src/mesa/drivers/dri/r600/r700_chip.c

index 0fb355a0b6a4a8e9894f5d1024a54b5b1c72d793..f461d08a7072c9c519cc234ad614f12720e8bf3c 100644 (file)
@@ -408,7 +408,6 @@ int r700SetupStreams(GLcontext * ctx)
     END_BATCH();
     COMMIT_BATCH();
 
-    context->radeon.tcl.aos_count = 0;
        for(i=0; i<VERT_ATTRIB_MAX; i++)
        {
                unBit = 1 << i;
@@ -429,9 +428,9 @@ int r700SetupStreams(GLcontext * ctx)
                                              (unsigned int)context->radeon.tcl.aos[j].stride * 4,
                                              (unsigned int)context->radeon.tcl.aos[j].count);
                        j++;
-                       context->radeon.tcl.aos_count++;
                }
        }
+       context->radeon.tcl.aos_count = j;
 
     return R600_FALLBACK_NONE;
 }