i965: Add a note about an unsafe-looking state check.
authorEric Anholt <eric@anholt.net>
Sat, 22 Oct 2011 02:08:55 +0000 (19:08 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:15:59 +0000 (12:15 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_draw.c

index c02b2bc78529d23a4dde343ba49d381a4dc150f2..c3755d564a514b9331f50cb6ed31c144f5e58ac4 100644 (file)
@@ -350,6 +350,11 @@ static bool brw_try_draw_prims( struct gl_context *ctx,
       else
         gen6_set_prim(brw, &prim[i]);
 
+      /* Note that before the loop, brw->state.dirty.brw was set to != 0, and
+       * that the state updated in the loop outside of this block is that in
+       * *_set_prim or intel_batchbuffer_flush(), which only impacts
+       * brw->state.dirty.brw.
+       */
       if (brw->state.dirty.brw) {
         brw_validate_state(brw);