diff options
author | Owain G. Ainsworth <oga@openbsd.org> | 2010-03-01 14:50:51 +0000 |
---|---|---|
committer | Owain G. Ainsworth <oga@openbsd.org> | 2010-03-01 14:50:51 +0000 |
commit | 522fbbee7e3101880975a1b80a7cb1ca2fd5714e (patch) | |
tree | f51233fc3ece548c69c7fb8270016bdee00fc378 /src/i830_accel.c | |
parent | 4a83074c013847bf5c9ed3492cf0cfa35ba808c5 (diff) |
conf: Add debugging flush options
Make the following options available via xorg.conf:
Section "Driver"
Option "DebugFlushBatches" "1" # Flush the batch buffer after every
# single operation;
Option "DebugFlushCaches" "1" # Include a MI_FLUSH at the end of every
# batch buffer to force data to be
# flushed out of cache and into memory
# before the completion of the batch.
Option "DebugWait" "1" # Wait for the completion of every batch buffer
# before continuing, i.e. perform synchronous
# rendering.
EndSection
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
(cherry picked from commit 3c0815abf28744e215bea286e71d935cd486955a)
Conflicts:
src/i830.h
src/i830_batchbuffer.c
src/i830_driver.c
Diffstat (limited to 'src/i830_accel.c')
-rw-r--r-- | src/i830_accel.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/i830_accel.c b/src/i830_accel.c index ec59896b..8b58b8ce 100644 --- a/src/i830_accel.c +++ b/src/i830_accel.c @@ -153,15 +153,12 @@ void I830EmitFlush(ScrnInfoPtr scrn) } } -#if (ALWAYS_SYNC || ALWAYS_FLUSH) -void i830_debug_sync(ScrnInfoPtr scrn) +void i830_debug_flush(ScrnInfoPtr scrn) { - if (ALWAYS_SYNC) - I830Sync(scrn); - else + intel_screen_private *intel = intel_get_screen_private(scrn); + if (intel->debug_flush & DEBUG_FLUSH_BATCHES) 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 |