mirror of
https://github.com/X11Libre/xf86-video-intel.git
synced 2026-03-24 01:24:12 +00:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user