SHA256
1
0
forked from pool/Mesa
Mesa/n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch
Stefan Dirsch ccada919e5 - Update to 18.3.3
* In this release we have:
    A memory leak fix in the etnaviv driver, better NEON assembly code in vc4 and
    couple of stability improvements to the radeonsi driver. Another memory leak
    affecting all gallium drivers have also been addressed.
  * The time required to compile GLSL shaders with large amount of uniforms, such
    as Godot, has been improved.
  * GLX and swrast have also seen some improvements.
  * On the Vulkan side, the ANV driver adjusted the number of images supported
    for gen8 and earlier to 8, while for newer hardware it remains the same 64.
    The RADV driver has seens a collection of stability improvements and fix for
    the Vulkan version advertised in some corner cases.
  * To top it all up, the meson build system has seen a steady amount of fixes:
    the DSO version for the VDPAU drivers is now included, ICC compatibility
    patches, opencl handling and relaxed handling when building osmesa.
- adjusted n_Disable-Xshm-for-now-since-it-results-in-render-erro.patch

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=806
2019-02-04 18:28:36 +00:00

33 lines
1.3 KiB
Diff

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, srcx, srcy, x, y, w, h, False);
--
2.16.4