i915g: fix braino in the static state rework
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Mar 2011 20:49:25 +0000 (21:49 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Mar 2011 20:49:25 +0000 (21:49 +0100)
For mip-map level rendering, both draw offset and size tend to change ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
src/gallium/drivers/i915/i915_state_static.c

index 44449bec0444f6917fa7daa25bb0536f7e6d3e3d..2865298318c965d3b68ca437176e01f248bb18ae 100644 (file)
@@ -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;
    }