projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bc4744
)
r200: Fix commit size prediction.
author
Pauli Nieminen
<suokkos@gmail.com>
Tue, 25 Aug 2009 18:36:19 +0000
(21:36 +0300)
committer
Pauli Nieminen
<suokkos@gmail.com>
Tue, 25 Aug 2009 18:36:57 +0000
(21:36 +0300)
Scissor are emited for every primitive so fix that in prediction.
src/mesa/drivers/dri/r200/r200_tcl.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r200/r200_tcl.c
b/src/mesa/drivers/dri/r200/r200_tcl.c
index
7b3a9fc
..
67a226f
100644
(file)
--- 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 );