summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2010-11-02 11:08:58 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2010-11-02 16:06:13 +0800
commitaedc270966a3a6563d8c6eaf1f41095ab9cfef3e (patch)
tree7c4f775b99fc8bf68b257c5cabecde44ca56dda9
parent16ee7a55ae269612263468195f2af998cb9ef695 (diff)
i965: refresh wm push constant also for BRW_NEW_FRAMENT_PROGRAM on gen6
Fix compiz crash. https://bugs.freedesktop.org/show_bug.cgi?id=31124
-rw-r--r--src/mesa/drivers/dri/i965/gen6_wm_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_wm_state.c b/src/mesa/drivers/dri/i965/gen6_wm_state.c
index 36d4ab93ba..ea5418bacf 100644
--- a/src/mesa/drivers/dri/i965/gen6_wm_state.c
+++ b/src/mesa/drivers/dri/i965/gen6_wm_state.c
@@ -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,