From: Pauli Nieminen Date: Tue, 11 Aug 2009 22:40:17 +0000 (+0300) Subject: r200: Make swtcl use state size prediction for flush. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60d156f68864c48e18dfc2691eca5e11c4000fa8;p=mesa.git r200: Make swtcl use state size prediction for flush. Signed-off-by: Pauli Nieminen --- 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__);