From: Zhenyu Wang Date: Tue, 2 Nov 2010 03:08:58 +0000 (+0800) Subject: i965: refresh wm push constant also for BRW_NEW_FRAMENT_PROGRAM on gen6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aedc270966a3a6563d8c6eaf1f41095ab9cfef3e;p=mesa.git 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 --- diff --git a/src/mesa/drivers/dri/i965/gen6_wm_state.c b/src/mesa/drivers/dri/i965/gen6_wm_state.c index 36d4ab93ba9..ea5418bacf1 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,