diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-05-05 13:06:11 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-05-05 13:07:31 +0100 |
commit | 5279ebf56449a9b9edd28ff23e9c8a20af792795 (patch) | |
tree | 23d579013e8c29788bc8a9b3596908c77e243a04 /tools/virtual.c | |
parent | a93d2d4f910dc66fe7114a4f44bf8098e3f7ae7a (diff) |
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 <chris@chris-wilson.co.uk>
References: https://bugs.freedesktop.org/show_bug.cgi?id=78293
Diffstat (limited to 'tools/virtual.c')
-rw-r--r-- | tools/virtual.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |