i965: Add missing _NEW_PROGRAM dirty bit to the gen7_sbe_state atom.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Jan 2012 19:00:23 +0000 (11:00 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Jan 2012 05:45:09 +0000 (21:45 -0800)
According to a comment in gen6_sf_state, calls to get_attr_override need
both _NEW_PROGRAM and _NEW_LIGHT.  Since Gen7 reuses the same function,
the same dirty bits should apply.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/gen7_sf_state.c

index 8876722812d1112b122d4d754ed3a05c8abf491f..c8448af6d9b900bd408aee8166b6a309550f4709 100644 (file)
@@ -105,6 +105,7 @@ upload_sbe_state(struct brw_context *brw)
        */
       assert(input_index < 16 || attr == input_index);
 
+      /* _NEW_LIGHT | _NEW_PROGRAM */
       attr_overrides[input_index++] =
          get_attr_override(&vue_map, urb_entry_read_offset, attr,
                            ctx->VertexProgram._TwoSideEnabled);
@@ -133,6 +134,7 @@ const struct brw_tracked_state gen7_sbe_state = {
    .dirty = {
       .mesa  = (_NEW_LIGHT |
                _NEW_POINT |
+               _NEW_PROGRAM |
                _NEW_TRANSFORM),
       .brw   = (BRW_NEW_CONTEXT |
                BRW_NEW_FRAGMENT_PROGRAM),