- n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch

* 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

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=792
This commit is contained in:
Stefan Dirsch 2018-12-11 10:55:20 +00:00 committed by Git OBS Bridge
parent 1530ecc846
commit 81a64ee144
5 changed files with 61 additions and 2 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Dec 11 10:45:49 UTC 2018 - sndirsch@suse.com
- n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch
* 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
-------------------------------------------------------------------
Mon Dec 10 15:38:24 UTC 2018 - Ismail Dönmez <idonmez@suse.com>
- Fix baselibs.conf entry for Mesa-KHR-devel (missing "-")
-------------------------------------------------------------------
Fri Dec 7 13:57:32 UTC 2018 - sndirsch@suse.com

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
@ -138,6 +138,8 @@ Patch31: archlinux_0001-Fix-linkage-against-shared-glapi.patch
Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch
Patch57: u_wayland_egl-Ensure-EGL-surface.patch
Patch60: n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch
BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: fdupes
@ -736,6 +738,7 @@ rm -rf docs/README.{VMS,WIN32,OS2}
%patch54 -p1
%patch57 -p1
%patch60 -p1
# Remove requires to libglvnd/libglvnd-devel from baselibs.conf when
# disabling libglvnd build; ugly ...

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Dec 11 10:45:49 UTC 2018 - sndirsch@suse.com
- n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch
* 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
-------------------------------------------------------------------
Mon Dec 10 15:38:24 UTC 2018 - Ismail Dönmez <idonmez@suse.com>

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
@ -137,6 +137,8 @@ Patch31: archlinux_0001-Fix-linkage-against-shared-glapi.patch
Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch
Patch57: u_wayland_egl-Ensure-EGL-surface.patch
Patch60: n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch
BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: fdupes
@ -735,6 +737,7 @@ rm -rf docs/README.{VMS,WIN32,OS2}
%patch54 -p1
%patch57 -p1
%patch60 -p1
# Remove requires to libglvnd/libglvnd-devel from baselibs.conf when
# disabling libglvnd build; ugly ...

View File

@ -0,0 +1,32 @@
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;
XShmPutImage(dpy, drawable, gc, ximage, 0, 0, x, y, w, h, False);
--
2.16.4