i965: Upload state on primitive switch, don't just prepare it.
authorEric Anholt <eric@anholt.net>
Wed, 12 Nov 2008 21:37:16 +0000 (13:37 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 12 Nov 2008 21:37:16 +0000 (13:37 -0800)
This was a regression in 59b2c2adbbece27ccf54e58b598ea29cb3a5aa85 that broke
blender, among other apps.

src/mesa/drivers/dri/i965/brw_draw.c

index d87b8f8..f893dd6 100644 (file)
@@ -105,6 +105,7 @@ static GLuint brw_set_prim(struct brw_context *brw, GLenum prim)
       }
 
       brw_validate_state(brw);
+      brw_upload_state(brw);
    }
 
    return hw_prim[prim];