r100: revalidate after radeon_update_renderbuffers
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 27 Oct 2010 17:53:29 +0000 (13:53 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Wed, 27 Oct 2010 17:53:29 +0000 (13:53 -0400)
This is a port of 603741a86df0e43c0b52e8c202a35c7fe2fc1d9c
to r100.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
src/mesa/drivers/dri/radeon/radeon_swtcl.c
src/mesa/drivers/dri/radeon/radeon_tcl.c

index f5b0df6ef518452e9cd355f27e903db0c380a540..ff3506b22597ddbefb10f6e05698375a84b15aa8 100644 (file)
@@ -412,6 +412,8 @@ static GLboolean radeon_run_render( struct gl_context *ctx,
       return GL_TRUE;          
 
    radeon_prepare_render(&rmesa->radeon);
+   if (rmesa->radeon.NewGLState)
+      radeonValidateState( ctx );
 
    tnl->Driver.Render.Start( ctx );
 
index c59b413012c079de87421bf7d6e6bfbd68c780e5..5d2e8f4870fb1a6f54744d80b2daaae0602bcddf 100644 (file)
@@ -253,6 +253,8 @@ void radeonTclPrimitive( struct gl_context *ctx,
    GLuint newprim = hw_prim | RADEON_CP_VC_CNTL_TCL_ENABLE;
 
    radeon_prepare_render(&rmesa->radeon);
+   if (rmesa->radeon.NewGLState)
+      radeonValidateState( ctx );
 
    if (newprim != rmesa->tcl.hw_primitive ||
        !discrete_prim[hw_prim&0xf]) {