diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-10-31 09:20:54 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-10-31 09:22:43 +0000 |
commit | 9c399c74adc5e5bc7d425382a74d84315d2cef02 (patch) | |
tree | dec6f527ba4b747f102fedd9113ba02eead4187d /src/sna/sna_accel.c | |
parent | c8860ce26eaa8f9e876af2354d61c35338076ac8 (diff) |
sna: Add an option to disable the delayed flush
Section "Device"
Option "DelayedFlush" "False"
EndSection
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r-- | src/sna/sna_accel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 0b04db86..f6095b5e 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -5995,6 +5995,9 @@ static Bool sna_accel_do_flush(struct sna *sna) return FALSE; } + if (sna->flags & SNA_NO_DELAYED_FLUSH) + return TRUE; + if (sna->timer[FLUSH_TIMER] == -1) return TRUE; |