i965: Update the gen6 stencil ref state when stencil state changes.
authorEric Anholt <eric@anholt.net>
Thu, 28 Oct 2010 23:09:41 +0000 (16:09 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 28 Oct 2010 23:28:42 +0000 (16:28 -0700)
Fixes 6 piglit tests about stencil operations.

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

index 0d6e923f734490b80375a7c23ec7d55bd9e66bee..800a25552141bb76aae204f02b383d056a08a55e 100644 (file)
@@ -254,7 +254,7 @@ prepare_color_calc_state(struct brw_context *brw)
 
 const struct brw_tracked_state gen6_color_calc_state = {
    .dirty = {
-      .mesa = _NEW_COLOR,
+      .mesa = _NEW_COLOR | _NEW_STENCIL,
       .brw = 0,
       .cache = 0,
    },