From: Eric Anholt Date: Wed, 12 Nov 2008 21:37:16 +0000 (-0800) Subject: i965: Upload state on primitive switch, don't just prepare it. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c30eb2c104c19c758c0b2a2461ad7f38cfa747d0;p=mesa.git i965: Upload state on primitive switch, don't just prepare it. This was a regression in 59b2c2adbbece27ccf54e58b598ea29cb3a5aa85 that broke blender, among other apps. --- diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index d87b8f8a848..f893dd67423 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -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];