From 60d156f68864c48e18dfc2691eca5e11c4000fa8 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Wed, 12 Aug 2009 01:40:17 +0300 Subject: [PATCH] r200: Make swtcl use state size prediction for flush. Signed-off-by: Pauli Nieminen --- src/mesa/drivers/dri/r200/r200_swtcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/r200/r200_swtcl.c b/src/mesa/drivers/dri/r200/r200_swtcl.c index 1b238911408..8dd2e69d33d 100644 --- a/src/mesa/drivers/dri/r200/r200_swtcl.c +++ b/src/mesa/drivers/dri/r200/r200_swtcl.c @@ -269,7 +269,7 @@ void r200_swtcl_flush(GLcontext *ctx, uint32_t current_offset) { r200ContextPtr rmesa = R200_CONTEXT(ctx); rcommonEnsureCmdBufSpace(&rmesa->radeon, - rmesa->radeon.hw.max_state_size + (12*sizeof(int)), + radeonCountEmitSize(&rmesa->radeon) + (12*sizeof(int)), __FUNCTION__); -- 2.30.2