2018-12-11 11:55:20 +01:00
|
|
|
From cd5af5c511b50890abe24d1e212ba9817f4074dd Mon Sep 17 00:00:00 2001
|
|
|
|
From: Stefan Dirsch <sndirsch@suse.de>
|
|
|
|
Date: Tue, 11 Dec 2018 11:36:26 +0100
|
|
|
|
Subject: [PATCH] Disable Xshm for now since it results in render errors
|
|
|
|
|
|
|
|
Xshm results in render errors and missing screen refreshes on GNOME3
|
|
|
|
in a qemu VM (cirrus emulation); see also
|
|
|
|
https://bugzilla.suse.com/show_bug.cgi?id=1118149
|
|
|
|
---
|
|
|
|
src/glx/drisw_glx.c | 6 +++++-
|
|
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
|
|
|
|
index 7b99e49f00..d6bebfb292 100644
|
|
|
|
--- a/src/glx/drisw_glx.c
|
|
|
|
+++ b/src/glx/drisw_glx.c
|
|
|
|
@@ -232,7 +232,11 @@ swrastXPutImage(__DRIdrawable * draw, int op,
|
|
|
|
ximage->bytes_per_line = stride ? stride : bytes_per_line(w * ximage->bits_per_pixel, 32);
|
|
|
|
ximage->data = data;
|
|
|
|
|
|
|
|
- if (pdp->shminfo.shmid >= 0) {
|
|
|
|
+ /* disable Xshm for now since it results in render errors and missing screen refreshes
|
|
|
|
+ on GNOME3 in a qemu VM (cirrus emulation); see also
|
|
|
|
+ https://bugzilla.suse.com/show_bug.cgi?id=1118149
|
|
|
|
+ */
|
|
|
|
+ if (0 && pdp->shminfo.shmid >= 0) {
|
|
|
|
ximage->width = ximage->bytes_per_line / ((ximage->bits_per_pixel + 7)/ 8);
|
|
|
|
ximage->height = h;
|
2019-02-04 19:28:36 +01:00
|
|
|
XShmPutImage(dpy, drawable, gc, ximage, srcx, srcy, x, y, w, h, False);
|
2018-12-11 11:55:20 +01:00
|
|
|
--
|
|
|
|
2.16.4
|
|
|
|
|