xf86-video-intel: src/sna/sna_dri2.c
Chris Wilson
ickle at kemper.freedesktop.org
Sat Oct 18 02:20:33 PDT 2014
src/sna/sna_dri2.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit bf7b5a24bbfc8a3553be6baa457ec92559dd3d65
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sat Oct 18 10:13:31 2014 +0100
sna/dri2: Exchange pitches as well
When swapping over the names, we also need to swap the pitches exposed
through the protocol as well.
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 784caee..6359377 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -1872,6 +1872,10 @@ sna_dri2_xchg(DrawablePtr draw, DRI2BufferPtr front, DRI2BufferPtr back)
front->name = back->name;
back->name = tmp;
+ tmp = front->pitch;
+ front->pitch = back->pitch;
+ back->pitch = tmp;
+
assert(front_bo->refcnt);
assert(back_bo->refcnt);
More information about the xorg-commit
mailing list