From 5279ebf56449a9b9edd28ff23e9c8a20af792795 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 5 May 2014 13:06:11 +0100 Subject: intel-virtual-output: Mark ShmPixmap destinations as writeable In order to prevent a subsequent BadAccess when we try to use it as a ShmPixmap, we need to mark the segment as writeable. Signed-off-by: Chris Wilson References: https://bugs.freedesktop.org/show_bug.cgi?id=78293 --- tools/virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virtual.c b/tools/virtual.c index 8803feab..d35e5852 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -934,7 +934,7 @@ static int clone_init_xfer(struct clone *clone) } if (clone->dst.use_shm) { clone->dst.shm = clone->shm; - clone->dst.shm.readOnly = True; + clone->dst.shm.readOnly = !clone->dst.use_shm_pixmap; XShmAttach(clone->dst.dpy, &clone->dst.shm); XSync(clone->dst.dpy, False); } -- cgit v1.2.3