summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-03-15 21:49:25 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-03-15 21:49:25 +0100
commitd04348aaf69549c14b68e77d4003e4e3499e7cce (patch)
tree5beffa307a4235a63b871a3783b22df1de5aa242
parent11ee41fe7f72f7136b531f0c51f820e90a610a79 (diff)
i915g: fix braino in the static state rework
For mip-map level rendering, both draw offset and size tend to change ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--src/gallium/drivers/i915/i915_state_static.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_state_static.c b/src/gallium/drivers/i915/i915_state_static.c
index 44449bec04..2865298318 100644
--- a/src/gallium/drivers/i915/i915_state_static.c
+++ b/src/gallium/drivers/i915/i915_state_static.c
@@ -131,7 +131,8 @@ static void update_framebuffer(struct i915_context *i915)
i915->current.draw_offset = draw_offset;
i915_set_flush_dirty(i915, I915_PIPELINE_FLUSH);
i915->static_dirty |= I915_DST_RECT;
- } else if (i915->current.draw_size != draw_size) {
+ }
+ if (i915->current.draw_size != draw_size) {
i915->current.draw_size = draw_size;
i915->static_dirty |= I915_DST_RECT;
}