i915: Inhibit render cache flush when changing drawing rectangle offset.
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 5 Jun 2010 08:32:28 +0000 (09:32 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 5 Jun 2010 08:32:28 +0000 (09:32 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i915/i915_vtbl.c

index 0a93e64b1fa315f2dbb9ee2c74772b71f3dfc7d1..974ab3ec14a5c81e87702a327e19028c7646e4f0 100644 (file)
@@ -622,7 +622,7 @@ i915_set_draw_region(struct intel_context *intel,
    }
 
    /* When changing drawing rectangle offset, an MI_FLUSH is first required. */
-   state->Buffer[I915_DESTREG_DRAWRECT0] = MI_FLUSH;
+   state->Buffer[I915_DESTREG_DRAWRECT0] = MI_FLUSH | INHIBIT_FLUSH_RENDER_CACHE;
    state->Buffer[I915_DESTREG_DRAWRECT1] = _3DSTATE_DRAWRECT_INFO;
    state->Buffer[I915_DESTREG_DRAWRECT2] = 0;
    state->Buffer[I915_DESTREG_DRAWRECT3] = (draw_y << 16) | draw_x;