Mesa (master): i915: And remember assign the new value to the state reg...

Chris Wilson ickle at kemper.freedesktop.org
Wed Feb 23 22:11:18 UTC 2011


Module: Mesa
Branch: master
Commit: 19ac5fa50dbb2f80eb0d47866b1474e3bd7a84dc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=19ac5fa50dbb2f80eb0d47866b1474e3bd7a84dc

Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Feb 23 22:09:12 2011 +0000

i915: And remember assign the new value to the state reg...

Fixes regression from 298ebb78de8a6b6edf0aa0fe8d784d00bbc2930e.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34589
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

---

 src/mesa/drivers/dri/i915/i915_state.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i915/i915_state.c b/src/mesa/drivers/dri/i915/i915_state.c
index 93d344d..58d4f5d 100644
--- a/src/mesa/drivers/dri/i915/i915_state.c
+++ b/src/mesa/drivers/dri/i915/i915_state.c
@@ -98,6 +98,7 @@ i915_update_stencil(struct gl_context * ctx)
    dw &= ~(mask); \
    dw |= (set); \
    dirty |= dw != i915->state.Ctx[reg]; \
+   i915->state.Ctx[reg] = dw; \
 } while(0)
 
    /* Set front state. */




More information about the mesa-commit mailing list