From 81a64ee144e56be65816b82be852d98919c2dc146c65977093290b3930607d9c Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Tue, 11 Dec 2018 10:55:20 +0000 Subject: [PATCH] - 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 --- Mesa-drivers.changes | 13 ++++++++ Mesa-drivers.spec | 5 ++- Mesa.changes | 8 +++++ Mesa.spec | 5 ++- ...-now-since-it-results-in-render-erro.patch | 32 +++++++++++++++++++ 5 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch diff --git a/Mesa-drivers.changes b/Mesa-drivers.changes index 2bbd047..77d7202 100644 --- a/Mesa-drivers.changes +++ b/Mesa-drivers.changes @@ -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 + +- Fix baselibs.conf entry for Mesa-KHR-devel (missing "-") + ------------------------------------------------------------------- Fri Dec 7 13:57:32 UTC 2018 - sndirsch@suse.com diff --git a/Mesa-drivers.spec b/Mesa-drivers.spec index 7611c4b..1f26950 100644 --- a/Mesa-drivers.spec +++ b/Mesa-drivers.spec @@ -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 ... diff --git a/Mesa.changes b/Mesa.changes index 2224f19..77d7202 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -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 diff --git a/Mesa.spec b/Mesa.spec index 257c1bc..64ddbab 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -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 ... diff --git a/n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch b/n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch new file mode 100644 index 0000000..8638449 --- /dev/null +++ b/n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch @@ -0,0 +1,32 @@ +From cd5af5c511b50890abe24d1e212ba9817f4074dd Mon Sep 17 00:00:00 2001 +From: Stefan Dirsch +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 +