diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-05-21 07:38:35 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-05-21 07:40:02 +0100 |
commit | 2dbe76c4925e02b8ec20b986069e2ff38cea5bba (patch) | |
tree | 14e2b572ac549029fffffe219e90e796b453d64f /src/sna/sna.h | |
parent | a82f6a7594ee13170aba5bac7fb57cd5550b27ee (diff) |
sna/dri2: Tidy computation of 64bit ust
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r-- | src/sna/sna.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index 8cfa98a9..a5141811 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -463,6 +463,11 @@ extern xf86CrtcPtr sna_covering_crtc(struct sna *sna, extern bool sna_wait_for_scanline(struct sna *sna, PixmapPtr pixmap, xf86CrtcPtr crtc, const BoxRec *clip); +static inline uint64_t ust64(int tv_sec, int tv_usec) +{ + return (uint64_t)tv_sec * 1000000 + tv_usec; +} + #if HAVE_DRI2_H bool sna_dri2_open(struct sna *sna, ScreenPtr pScreen); void sna_dri2_page_flip_handler(struct sna *sna, struct drm_event_vblank *event); |