From 67d03433772867abc23272c9cf323b15285dde47 Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Wed, 24 Mar 2004 16:15:28 +0000 Subject: Buffer vertices and emit them in batches. Still using conventional drawing commands, no vertex DMA. --- src/mesa/drivers/dri/savage/savagestate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/savage/savagestate.c') diff --git a/src/mesa/drivers/dri/savage/savagestate.c b/src/mesa/drivers/dri/savage/savagestate.c index b32b58ab878..2542b1d29d1 100644 --- a/src/mesa/drivers/dri/savage/savagestate.c +++ b/src/mesa/drivers/dri/savage/savagestate.c @@ -1327,6 +1327,8 @@ void savageDDUpdateHwState( GLcontext *ctx ) { savageContextPtr imesa = SAVAGE_CONTEXT(ctx); + /*FLUSH_BATCH(imesa);*/ + if(imesa->driDrawable) { LOCK_HARDWARE(imesa); @@ -1837,7 +1839,6 @@ void savageDDRenderStart(GLcontext *ctx) { /*ctx->VB->CopyStart = ctx->VB->Count;*/ } - LOCK_HARDWARE(SAVAGE_CONTEXT(ctx)); } @@ -1845,7 +1846,6 @@ void savageDDRenderEnd(GLcontext *ctx) { savageContextPtr imesa = SAVAGE_CONTEXT( ctx ); - UNLOCK_HARDWARE(SAVAGE_CONTEXT(ctx)); if(!imesa->IsDouble) { savageSwapBuffers(imesa->driDrawable); @@ -1855,6 +1855,8 @@ void savageDDRenderEnd(GLcontext *ctx) static void savageDDInvalidateState( GLcontext *ctx, GLuint new_state ) { + FLUSH_BATCH(SAVAGE_CONTEXT(ctx)); + _swrast_InvalidateState( ctx, new_state ); _swsetup_InvalidateState( ctx, new_state ); _ac_InvalidateState( ctx, new_state ); -- cgit v1.2.3