projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c8f8d3
)
fix for Erics new emit state code, rework out the dest pointer
author
Dave Airlie
<airliedfreedesktop.org>
Thu, 23 Sep 2004 08:24:03 +0000
(08:24 +0000)
committer
Dave Airlie
<airliedfreedesktop.org>
Thu, 23 Sep 2004 08:24:03 +0000
(08:24 +0000)
after we check the buffer
src/mesa/drivers/dri/r200/r200_cmdbuf.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r200/r200_cmdbuf.c
b/src/mesa/drivers/dri/r200/r200_cmdbuf.c
index e3829f9a9575baff8d4a9c9b5b9774d7a9593b84..fb42849f51a5e10c2615ceebc362c37b76e2bd5b 100644
(file)
--- a/
src/mesa/drivers/dri/r200/r200_cmdbuf.c
+++ b/
src/mesa/drivers/dri/r200/r200_cmdbuf.c
@@
-127,6
+127,9
@@
void r200EmitState( r200ContextPtr rmesa )
dest = rmesa->store.cmd_buf + rmesa->store.cmd_used;
r200EnsureCmdBufSpace( rmesa, rmesa->hw.max_state_size );
+ /* we need to recalculate dest after EnsureCmdBufSpace
+ as we may flush the buffer - airlied */
+ dest = rmesa->store.cmd_buf + rmesa->store.cmd_used;
if (R200_DEBUG & DEBUG_STATE) {
foreach( atom, &rmesa->hw.atomlist ) {
if ( atom->dirty || rmesa->hw.all_dirty ) {