xf86-video-intel: src/sna/sna_dri2.c
Chris Wilson
ickle at kemper.freedesktop.org
Sun Jun 8 06:26:47 PDT 2014
src/sna/sna_dri2.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 9306a148cbf1a2471540f3301136d57e93197593
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sun Jun 8 09:40:19 2014 +0100
sna/dri2: Use xchg for offscreen drawables where applicable
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index 314651e..622a8e6 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -2485,9 +2485,12 @@ sna_dri2_schedule_swap(ClientPtr client, DrawablePtr draw, DRI2BufferPtr front,
blit:
DBG(("%s -- blit\n", __FUNCTION__));
- __sna_dri2_copy_region(sna, draw, NULL, back, front, false);
if (info)
sna_dri2_event_free(sna, draw, info);
+ if (can_xchg(sna, draw, front, back))
+ sna_dri2_exchange_buffers(draw, front, back);
+ else
+ __sna_dri2_copy_region(sna, draw, NULL, back, front, false);
skip:
DBG(("%s: unable to show frame, unblocking client\n", __FUNCTION__));
if (crtc == NULL)
More information about the xorg-commit
mailing list