diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-06-11 01:54:40 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-06-11 01:54:40 -0400 |
commit | 1d8d4cad6a30b994f5bea6873525966a965c5997 (patch) | |
tree | a595c90726d66f9c5dafefd99651e1d779f3cb14 /src/mesa/drivers/dri/r600 | |
parent | 7ac2f655f845a7a100939a9b1b2251535055ab84 (diff) |
Properly set aos_count
This is used by radeonReleaseArrays to free AOS.
Diffstat (limited to 'src/mesa/drivers/dri/r600')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_chip.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_chip.c b/src/mesa/drivers/dri/r600/r700_chip.c index 8e7787eeef..6e7adf7373 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; 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++; } } |