diff options
author | Dave Airlie <airliedfreedesktop.org> | 2004-09-23 08:24:03 +0000 |
---|---|---|
committer | Dave Airlie <airliedfreedesktop.org> | 2004-09-23 08:24:03 +0000 |
commit | a1f8ecf9627271110b11e04e3ff2dba37b4932be (patch) | |
tree | 41f10c0c4cc2b77c7917e516838822bb9a314b15 /src/mesa/drivers | |
parent | 0c8f8d3dc9d60ed34eeca7f3606651420a81753c (diff) |
fix for Erics new emit state code, rework out the dest pointer
after we check the buffer
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_cmdbuf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_cmdbuf.c b/src/mesa/drivers/dri/r200/r200_cmdbuf.c index e3829f9a957..fb42849f51a 100644 --- 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 ) { |