summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-10-31 12:10:52 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-10-31 12:31:23 +0000
commit59535d0e1c587cfe9249ab1baf9acf8470b49b8b (patch)
tree6c0d6064fdf5a0441cfe125f07c938ff40d13c6a /src/sna/sna.h
parent9a2e59bfba6748325918f895b3e58351c7eb4baa (diff)
sna: Set the flush interval based on output vrefresh
Rather than a blank 25Hz, use twice the vblank interval to hopefully avoid bad values. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index f045fa50..3d2ecaf8 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -212,6 +212,8 @@ struct sna {
int timer[NUM_TIMERS];
int timer_active;
+ int flush_interval;
+
struct list deferred_free;
struct list dirty_pixmaps;