summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon/radeon_swtcl.c
diff options
context:
space:
mode:
authorPauli Nieminen <[email protected]>2009-08-12 20:28:54 +0300
committerPauli Nieminen <[email protected]>2009-08-21 19:12:30 +0300
commitd1a0ece9077b3de49c293a04c220b995424cef28 (patch)
tree372264edd89165b6d0af03a96c3698e06e9b1c37 /src/mesa/drivers/dri/radeon/radeon_swtcl.c
parent60d156f68864c48e18dfc2691eca5e11c4000fa8 (diff)
radeon: Port flush preventation code from r200 to r100.
- emit prediction - fixes to emit_sizes for data - clean up of excesive use of radeonEnsureCmdBufferSpace Signed-off-by: Pauli Nieminen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_swtcl.c')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_swtcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_swtcl.c b/src/mesa/drivers/dri/radeon/radeon_swtcl.c
index 58b3be9391b..a1b398e560b 100644
--- a/src/mesa/drivers/dri/radeon/radeon_swtcl.c
+++ b/src/mesa/drivers/dri/radeon/radeon_swtcl.c
@@ -285,7 +285,7 @@ void r100_swtcl_flush(GLcontext *ctx, uint32_t current_offset)
r100ContextPtr rmesa = R100_CONTEXT(ctx);
rcommonEnsureCmdBufSpace(&rmesa->radeon,
- rmesa->radeon.hw.max_state_size + (12*sizeof(int)),
+ radeonCountEmitSize( &rmesa->radeon ) + (12*sizeof(int)),
__FUNCTION__);