Properly set aos_count
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 11 Jun 2009 05:54:40 +0000 (01:54 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 11 Jun 2009 05:54:40 +0000 (01:54 -0400)
This is used by radeonReleaseArrays to free AOS.

src/mesa/drivers/dri/r600/r700_chip.c

index 8e7787eeef1eaa8429c5a34e2a1e99c7d6368352..6e7adf73731243a122d1e972bdbc6a9665bb1f6e 100644 (file)
@@ -301,7 +301,7 @@ int r700SetupStreams(GLcontext * ctx)
     END_BATCH();
     COMMIT_BATCH();
 
-    //context->aos_count = 0;
+    context->radeon.tcl.aos_count = 0;
        for(i=0; i<VERT_ATTRIB_MAX; i++)
        {
                unBit = 1 << i;
@@ -314,13 +314,15 @@ int r700SetupStreams(GLcontext * ctx)
                                            vb->AttribPtr[i]->stride,
                                            vb->Count);
 
-            /* currently aos are packed */
-            r700SetupVTXConstants(ctx,
-                                 i,
-                                 (void*)(&context->radeon.tcl.aos[i]),
-                                 (unsigned int)vb->AttribPtr[i]->size,
-                                 (unsigned int)(vb->AttribPtr[i]->size * 4),
-                                 (unsigned int)vb->Count);
+                       /* currently aos are packed */
+                       r700SetupVTXConstants(ctx,
+                                             i,
+                                             (void*)(&context->radeon.tcl.aos[i]),
+                                             (unsigned int)vb->AttribPtr[i]->size,
+                                             (unsigned int)(vb->AttribPtr[i]->size * 4),
+                                             (unsigned int)vb->Count);
+
+                       context->radeon.tcl.aos_count++;
                }
        }