fix regression with fallbacks from recent commits
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 30 Dec 2004 14:32:19 +0000 (14:32 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 30 Dec 2004 14:32:19 +0000 (14:32 +0000)
src/mesa/drivers/dri/unichrome/via_state.c
src/mesa/drivers/dri/unichrome/via_tris.c

index 0805610..62cdee2 100644 (file)
@@ -1555,10 +1555,8 @@ void viaValidateState( GLcontext *ctx )
     if (vmesa->newState & _NEW_STENCIL)
         viaChooseStencilState(ctx);
     
-    if (!vmesa->Fallback) {
-       vmesa->newEmitState |= vmesa->newState;
-       vmesa->newState = 0;
-    }
+    vmesa->newEmitState |= vmesa->newState;
+    vmesa->newState = 0;
             
     if (VIA_DEBUG) fprintf(stderr, "%s - out\n", __FUNCTION__);        
 }
index 862c827..6dbbfe0 100644 (file)
@@ -633,9 +633,11 @@ static void viaRunPipeline(GLcontext *ctx)
     viaContextPtr vmesa = VIA_CONTEXT(ctx);
     
     if (vmesa->newState) {
-       viaChooseVertexState(ctx);
-       viaChooseRenderState(ctx);
        viaValidateState( ctx );
+       if (!vmesa->Fallback) {
+         viaChooseVertexState(ctx);
+         viaChooseRenderState(ctx);
+       }
     }
 
     _tnl_run_pipeline(ctx);