r300: fix swtcl texrect path properly.
authorDave Airlie <airlied@linux.ie>
Mon, 5 May 2008 13:49:50 +0000 (23:49 +1000)
committerDave Airlie <airlied@linux.ie>
Mon, 5 May 2008 13:49:50 +0000 (23:49 +1000)
We really need to update the shader state so the texrect parameters work.

This should fix compiz looking crappy on rs480 and rs690

src/mesa/drivers/dri/r300/r300_state.c
src/mesa/drivers/dri/r300/r300_swtcl.c

index 10002e3c4f8b8be5b850d4a0c13d9121837e0ff2..dbe1f6952eabd977e19ea8d8f0c6d7a6d4486459 100644 (file)
@@ -2323,10 +2323,11 @@ void r300UpdateShaders(r300ContextPtr rmesa)
                        hw_tcl_on = future_hw_tcl_on = 0;
                        r300ResetHwState(rmesa);
 
+                       r300UpdateStateParameters(ctx, _NEW_PROGRAM);
                        return;
                }
-               r300UpdateStateParameters(ctx, _NEW_PROGRAM);
        }
+       r300UpdateStateParameters(ctx, _NEW_PROGRAM);
 }
 
 static void r300SetupPixelShader(r300ContextPtr rmesa)
index a41fa1023a86823d21630e4c94ac8c31f85b85b8..8aebd9be3ea0b9f434576702c7d2609c23b280f6 100644 (file)
@@ -575,6 +575,7 @@ static void r300RenderStart(GLcontext *ctx)
        r300ChooseRenderState(ctx);     
        r300SetVertexFormat(ctx);
 
+       r300UpdateShaders(rmesa);
        r300UpdateShaderStates(rmesa);
 
        r300EmitCacheFlush(rmesa);