From: Alex Deucher Date: Thu, 11 Jun 2009 05:54:40 +0000 (-0400) Subject: Properly set aos_count X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d8d4cad6a30b994f5bea6873525966a965c5997;p=mesa.git Properly set aos_count This is used by radeonReleaseArrays to free AOS. --- diff --git a/src/mesa/drivers/dri/r600/r700_chip.c b/src/mesa/drivers/dri/r600/r700_chip.c index 8e7787eeef1..6e7adf73731 100644 --- a/src/mesa/drivers/dri/r600/r700_chip.c +++ b/src/mesa/drivers/dri/r600/r700_chip.c @@ -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; iAttribPtr[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++; } }