i965: upload WM state for _NEW_POLYGON on sandybridge
authorZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 7 Dec 2010 09:02:02 +0000 (17:02 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 7 Dec 2010 09:05:02 +0000 (17:05 +0800)
Be sure polygon stipple mode is updated. This fixes 'gamma' demo.

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

index a039d7df29d366769ef022d5eed8236669f71344..333c2a78424d1faeed60fd18662840bf19d6f0d0 100644 (file)
@@ -178,7 +178,7 @@ upload_wm_state(struct brw_context *brw)
 const struct brw_tracked_state gen6_wm_state = {
    .dirty = {
       .mesa  = (_NEW_LINE | _NEW_POLYGONSTIPPLE | _NEW_COLOR | _NEW_BUFFERS |
-               _NEW_PROGRAM_CONSTANTS),
+               _NEW_PROGRAM_CONSTANTS | _NEW_POLYGON),
       .brw   = (BRW_NEW_CURBE_OFFSETS |
                BRW_NEW_FRAGMENT_PROGRAM |
                 BRW_NEW_NR_WM_SURFACES |