summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2004-09-24 01:33:15 +0000
committerEric Anholt <[email protected]>2004-09-24 01:33:15 +0000
commit106ab07acd3de9450ddbd675bf512707d96ba6a9 (patch)
treec1071cd64772f02155694aaa3ca10316b2234f6e
parent529e0a98d477e33f41f680926f8b9c745aebbe90 (diff)
Remove an unnecessary calculation of the dest pointer.
-rw-r--r--src/mesa/drivers/dri/r200/r200_cmdbuf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_cmdbuf.c b/src/mesa/drivers/dri/r200/r200_cmdbuf.c
index fb42849f51a..128d9b86d79 100644
--- a/src/mesa/drivers/dri/r200/r200_cmdbuf.c
+++ b/src/mesa/drivers/dri/r200/r200_cmdbuf.c
@@ -124,10 +124,9 @@ void r200EmitState( r200ContextPtr rmesa )
* for enough space for the case of emitting all state, and inline the
* r200AllocCmdBuf code here without all the checks.
*/
- dest = rmesa->store.cmd_buf + rmesa->store.cmd_used;
r200EnsureCmdBufSpace( rmesa, rmesa->hw.max_state_size );
- /* we need to recalculate dest after EnsureCmdBufSpace
+ /* we need to calculate dest after EnsureCmdBufSpace
as we may flush the buffer - airlied */
dest = rmesa->store.cmd_buf + rmesa->store.cmd_used;
if (R200_DEBUG & DEBUG_STATE) {