summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorPauli Nieminen <[email protected]>2009-08-25 21:36:19 +0300
committerPauli Nieminen <[email protected]>2009-08-25 21:36:57 +0300
commit75df73838a0b75d7ee9a67369dabc08d92a59d57 (patch)
tree0552a643baf594dbf8d8eb10cf319edfa687cb71 /src/mesa/drivers
parent7bc4744026fadd3859097bf076e9b345f4e310f4 (diff)
r200: Fix commit size prediction.
Scissor are emited for every primitive so fix that in prediction.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r200/r200_tcl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_tcl.c b/src/mesa/drivers/dri/r200/r200_tcl.c
index 7b3a9fc859d..67a226f31ed 100644
--- a/src/mesa/drivers/dri/r200/r200_tcl.c
+++ b/src/mesa/drivers/dri/r200/r200_tcl.c
@@ -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 );