summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/savage/savagestate.c
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2004-03-24 16:15:28 +0000
committerFelix Kuehling <[email protected]>2004-03-24 16:15:28 +0000
commit67d03433772867abc23272c9cf323b15285dde47 (patch)
tree0b4c5df93786cb097da5eed60e39141e530bfd71 /src/mesa/drivers/dri/savage/savagestate.c
parentfda7215db36ddee1900cab38b1435f1d73ac7858 (diff)
Buffer vertices and emit them in batches. Still using conventional drawing
commands, no vertex DMA.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagestate.c')
-rw-r--r--src/mesa/drivers/dri/savage/savagestate.c6
1 files changed, 4 insertions, 2 deletions
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 );