From 0776a42b70f2de7b7d7d8804046c79442da1cb8a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 8 Jun 2010 10:43:24 +0100 Subject: implicit-flush --- src/i915_render.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/i915_render.c') diff --git a/src/i915_render.c b/src/i915_render.c index c71a7c8f..b2bc7a76 100644 --- a/src/i915_render.c +++ b/src/i915_render.c @@ -832,8 +832,11 @@ i915_prepare_composite(int op, PicturePtr source_picture, intel->i915_render_state.op = op; - if((source && i830_uxa_pixmap_is_dirty(source)) || - (mask && i830_uxa_pixmap_is_dirty(mask))) + /* BUF_INFO is an implicit flush */ + if (dest != intel->render_current_dest) + intel_batch_do_flush(scrn); + else if((source && i830_uxa_pixmap_is_dirty(source)) || + (mask && i830_uxa_pixmap_is_dirty(mask))) intel_batch_emit_flush(scrn); intel->needs_render_state_emit = TRUE; -- cgit v1.2.3