i965: refresh wm push constant also for BRW_NEW_FRAMENT_PROGRAM on gen6
authorZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 2 Nov 2010 03:08:58 +0000 (11:08 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 2 Nov 2010 08:06:13 +0000 (16:06 +0800)
Fix compiz crash.

https://bugs.freedesktop.org/show_bug.cgi?id=31124

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

index 36d4ab93ba9dc5e1ea05bfe0d2208453cee01012..ea5418bacf1c9f6cad5b7b86851d82d754ec9489 100644 (file)
@@ -73,7 +73,7 @@ prepare_wm_constants(struct brw_context *brw)
 const struct brw_tracked_state gen6_wm_constants = {
    .dirty = {
       .mesa  = _NEW_PROGRAM_CONSTANTS,
-      .brw   = 0,
+      .brw   = BRW_NEW_FRAGMENT_PROGRAM,
       .cache = 0,
    },
    .prepare = prepare_wm_constants,