diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-05-10 20:38:25 +0100 |
---|---|---|
committer | Owain G. Ainsworth <oga@openbsd.org> | 2011-05-30 00:26:14 +0100 |
commit | ba366b95cb4f1b17a0ec1d041ab539fa2975becd (patch) | |
tree | 2627c488ca8e9206cf95546a12c72048dfb28cf9 | |
parent | 345fcfc04f4b910c4c10ff0faa8a3097005bb9fc (diff) |
dri: Flush the batch after a DRI swap/copy event
To minimise lag in those every so critical games, we want to ensure that
the copy happens as soon as it is received, so we need to flush the
batch after processing a swap event and before we go to sleep.
References: https://bugs.freedesktop.org/show_bug.cgi?id=37068
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
(cherry picked from commit 895a46e8ff70195c1a4bdccbeb652e330376f64a)
Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
-rw-r--r-- | src/intel_dri.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel_dri.c b/src/intel_dri.c index b480445d..6368486c 100644 --- a/src/intel_dri.c +++ b/src/intel_dri.c @@ -190,6 +190,8 @@ static PixmapPtr fixup_shadow(DrawablePtr drawable, PixmapPtr pixmap) /* And redirect the pixmap to the new bo (for 3D). */ intel_set_pixmap_private(old, priv); old->refcnt++; + + intel_get_screen_private(xf86Screens[screen->myNum])->needs_flush = TRUE; return old; } |