mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
Properly set aos_count
This is used by radeonReleaseArrays to free AOS.
This commit is contained in:
parent
7ac2f655f8
commit
1d8d4cad6a
1 changed files with 10 additions and 8 deletions
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue