diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-03-10 23:04:10 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-03-10 23:04:10 +0100 |
commit | 6358e6371b31671acbfa7c00336673f62ee928c5 (patch) | |
tree | 17f26ceeed2d57e82e9bcedd7d1d3292061d48bd /src/gallium/drivers/i915/i915_state_static.c | |
parent | 8c420db1c4763d8d4d71ce8d835fc09a7a269d4c (diff) |
i915g: implement hw clear
Benefits:
- spares us a relocation.
- needed for zone rendering (if that ever happens).
- just awesome.
v2: Rename the debug option. Completely disabling the blitter is
required for Y tiling to work, so this option will cover other
code paths in the future.
v3: Implement suggestions by Jakob Bornecrantz.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'src/gallium/drivers/i915/i915_state_static.c')
-rw-r--r-- | src/gallium/drivers/i915/i915_state_static.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_state_static.c b/src/gallium/drivers/i915/i915_state_static.c index 20cd23f8f7..fbbcf94fd1 100644 --- a/src/gallium/drivers/i915/i915_state_static.c +++ b/src/gallium/drivers/i915/i915_state_static.c @@ -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; |