r600: state cleanups
[mesa.git] / src / mesa / drivers / dri / r600 / r700_render.c
index 20376d2c36d103ec5c72207a9a7d07b90e2182a5..6705dbcf4b9aff5ba66fe5262872d4473f86a257 100644 (file)
@@ -289,7 +289,6 @@ void r700EmitState(GLcontext * ctx)
        rcommonEnsureCmdBufSpace(&context->radeon,
                                 context->radeon.hw.max_state_size, __FUNCTION__);
 
-       r700Start3D(context);
        r700SendSQConfig(context);
 
        r700SendUCPState(context);
@@ -308,13 +307,12 @@ static GLboolean r700RunRender(GLcontext * ctx,
     TNLcontext *tnl = TNL_CONTEXT(ctx);
     struct vertex_buffer *vb = &tnl->vb;
 
+    r700Start3D(context);
+
     r700UpdateShaders(ctx);
     r700SetScissor(context);
     r700SetupShaders(ctx);
 
-    r700SetRenderTarget(context, 0);
-    r700SetDepthTarget(context);
-
     r700EmitState(ctx);
 
     /* richard test code */