summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-05-13 12:46:39 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-05-14 12:14:47 +0100
commit9f76133e71f1a7cb44ed2f98762ba8626f1e85e6 (patch)
tree9528b0879697c870c5875a9a265d311e621a4536 /src/sna/sna.h
parent96ce362ba40bf9560fb1aa27a6ae5fdd2a8bd428 (diff)
sna/dri2: Tighten reporting of faked flip events
GetDrawableMSC is specified as returning the frame counter and timestamp of the last flip event associated with the drawable, not the current hardware timestamp. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 9c1a34bd..0c0508b1 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -315,8 +315,14 @@ struct sna {
bool available;
bool open;
+#if HAVE_DRI2
void *flip_pending;
- unsigned int last_msc[MAX_PIPES];
+ struct {
+ uint64_t msc;
+ unsigned int tv_sec;
+ unsigned int tv_usec;
+ } last_swap[MAX_PIPES];
+#endif
} dri2;
struct sna_xv {