summaryrefslogtreecommitdiff
path: root/src/i830_accel.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-04-20 15:46:11 -0700
committerEric Anholt <eric@anholt.net>2009-04-21 15:28:55 -0700
commit928a37041defcca6f57f9452ba62e67524cb4510 (patch)
tree10d8fcc888b59e198aae69499416580c113a2c4e /src/i830_accel.c
parent1fc93ee184ceefaea9528bb46ae82884c44d9b36 (diff)
Replace a bunch of #ifdef debug flushing/syncing with a single function.
This removes it from a callsite where it would have just resulted in a fatalerror.
Diffstat (limited to 'src/i830_accel.c')
-rw-r--r--src/i830_accel.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/i830_accel.c b/src/i830_accel.c
index 9f5bcb55..67f264c2 100644
--- a/src/i830_accel.c
+++ b/src/i830_accel.c
@@ -271,6 +271,17 @@ I830SelectBuffer(ScrnInfoPtr pScrn, int buffer)
return TRUE;
}
+#if (ALWAYS_SYNC || ALWAYS_FLUSH)
+void
+i830_debug_sync(ScrnInfoPtr scrn)
+{
+ if (ALWAYS_SYNC)
+ I830Sync(scrn);
+ else
+ intel_batch_flush(scrn, FALSE);
+}
+#endif
+
/* The following function sets up the supported acceleration. Call it
* from the FbInit() function in the SVGA driver, or before ScreenInit
* in a monolithic server.