mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 03:38:06 +02:00
r200: Fix commit size prediction.
Scissor are emited for every primitive so fix that in prediction.
This commit is contained in:
parent
7bc4744026
commit
75df73838a
1 changed files with 4 additions and 1 deletions
|
|
@ -413,9 +413,12 @@ static GLuint r200EnsureEmitSize( GLcontext * ctx , GLubyte* vimap_rev )
|
|||
else
|
||||
space_required += index + elts;
|
||||
space_required += AOS_BUFSZ(nr_aos);
|
||||
space_required += SCISSOR_BUFSZ;
|
||||
}
|
||||
space_required += SCISSOR_BUFSZ;
|
||||
}
|
||||
|
||||
if (RADEON_DEBUG & DEBUG_PRIMS)
|
||||
fprintf(stderr, "%s space %u, aos %d\n", space_required, AOS_BUFSZ(nr_aos) );
|
||||
/* flush the buffer in case we need more than is left. */
|
||||
if (rcommonEnsureCmdBufSpace(&rmesa->radeon, space_required + state_size, __FUNCTION__))
|
||||
return space_required + radeonCountStateEmitSize( &rmesa->radeon );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue