i915g: implement hw clear
[mesa.git] / src / gallium / drivers / i915 / i915_state_static.c
index 20cd23f8f736cf833d5fced426f4763028d856cc..fbbcf94fd140702b18d65070496a0207e59e4787 100644 (file)
@@ -167,6 +167,8 @@ static void update_framebuffer(struct i915_context *i915)
       i915_set_flush_dirty(i915, I915_PIPELINE_FLUSH);
    }
    i915->current.draw_size = (w - 1 + x) | ((h - 1 + y) << 16);
+   i915->current.fb_height = h;
+   i915->current.fb_width = w;
 
    i915->hardware_dirty |= I915_HW_STATIC;