diff options
author | Daniel Vetter <[email protected]> | 2011-02-25 23:40:27 +0100 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2011-02-27 22:10:46 +0100 |
commit | d42c9433b0a3d9b3a198261d8037ce0d4595452d (patch) | |
tree | 663b65b395504391a908e828c562bbc41ca14e5b /src/gallium/drivers/i915/i915_blit.c | |
parent | f90fa55347c641cd0bcdde121909045f0dedbd66 (diff) |
i915g: implement cache flushing
With an extremely dumb strategy. But it's the same i915c employs.
Also improve the hw_atom code slightly by statically specifying the
required batch space. For extremely variably stuff (shaders, constants)
it would probably be better to add a new parameter to the hw_atom->validate
function.
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'src/gallium/drivers/i915/i915_blit.c')
-rw-r--r-- | src/gallium/drivers/i915/i915_blit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_blit.c b/src/gallium/drivers/i915/i915_blit.c index 9a390e51341..f885417f8ed 100644 --- a/src/gallium/drivers/i915/i915_blit.c +++ b/src/gallium/drivers/i915/i915_blit.c @@ -81,6 +81,8 @@ i915_fill_blit(struct i915_context *i915, OUT_BATCH(((y + h) << 16) | (x + w)); OUT_RELOC_FENCED(dst_buffer, I915_USAGE_2D_TARGET, dst_offset); OUT_BATCH(color); + + i915_set_flush_dirty(i915, I915_FLUSH_CACHE); } void @@ -153,4 +155,6 @@ i915_copy_blit(struct i915_context *i915, OUT_BATCH((src_y << 16) | src_x); OUT_BATCH(((int) src_pitch & 0xffff)); OUT_RELOC_FENCED(src_buffer, I915_USAGE_2D_SOURCE, src_offset); + + i915_set_flush_dirty(i915, I915_FLUSH_CACHE); } |