xf86-video-intel: src/i830_accel.c
Chris Wilson
ickle at kemper.freedesktop.org
Wed Oct 14 04:08:15 PDT 2009
src/i830_accel.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 86bc23ab5da34137c82250395c68aa92ecd88a24
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Wed Oct 14 12:04:40 2009 +0100
debug: Enable cache flushing after every operation
If DEBUG_FLUSH_CACHES is enabled then emit a MI_FLUSH after every
rendering operation. This is intended to 'fix' cases where we are
missing a required flush in the middle of a sequence of operations, such
as switching between 2D to 3D and render to sampler.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/i830_accel.c b/src/i830_accel.c
index e1aae6c..1e4c5c6 100644
--- a/src/i830_accel.c
+++ b/src/i830_accel.c
@@ -87,8 +87,11 @@ void I830EmitFlush(ScrnInfoPtr scrn)
void i830_debug_flush(ScrnInfoPtr scrn)
{
intel_screen_private *intel = intel_get_screen_private(scrn);
+
if (intel->debug_flush & DEBUG_FLUSH_BATCHES)
intel_batch_flush(scrn, FALSE);
+ else if (intel->debug_flush & DEBUG_FLUSH_CACHES)
+ I830EmitFlush(scrn);
}
/* The following function sets up the supported acceleration. Call it
More information about the xorg-commit
mailing list