xf86-video-intel: src/sna/sna_accel.c
Chris Wilson
ickle at kemper.freedesktop.org
Thu Feb 6 02:18:05 PST 2014
src/sna/sna_accel.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 823382d28944a319c207f20ecef25ce1707a8021
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Thu Feb 6 10:13:41 2014 +0000
sna: And clear drawable->id on reused pixmaps
References: https://bugs.freedesktop.org/show_bug.cgi?id=74550
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 457cc41..3919997 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -870,10 +870,11 @@ create_pixmap_hdr(struct sna *sna, ScreenPtr screen,
assert(pixmap->drawable.type == DRAWABLE_PIXMAP);
assert(pixmap->drawable.class == 0);
assert(pixmap->drawable.pScreen == screen);
- assert(pixmap->drawable.id == 0);
assert(pixmap->drawable.x == 0);
assert(pixmap->drawable.y == 0);
+ pixmap->drawable.id = 0;
+
pixmap->drawable.depth = depth;
pixmap->drawable.bitsPerPixel = bits_per_pixel(depth);
pixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER;
More information about the xorg-commit
mailing list