diff --git a/0001-glx-fix-xshm-check-to-init-xshm_opcode.patch b/0001-glx-fix-xshm-check-to-init-xshm_opcode.patch new file mode 100644 index 0000000..1b2ec86 --- /dev/null +++ b/0001-glx-fix-xshm-check-to-init-xshm_opcode.patch @@ -0,0 +1,27 @@ +From 808c054a42fd24a1aaefaeb1d95195fea9fb6e84 Mon Sep 17 00:00:00 2001 +From: Dave Airlie +Date: Wed, 7 Dec 2022 05:11:47 +1000 +Subject: [PATCH] glx: fix xshm check to init xshm_opcode. + +Found and proposed by Ray Strode (halfline) + +Fixes: 68e89401140d ("glx/drisw: use xcb instead of X to query connection") +--- + src/glx/drisw_glx.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c +index c0d1e85fdc4..d7658eaf7c1 100644 +--- a/src/glx/drisw_glx.c ++++ b/src/glx/drisw_glx.c +@@ -874,6 +874,7 @@ check_xshm(Display *dpy) + + shm_cookie = xcb_query_extension(c, 7, "MIT-SHM"); + shm_reply = xcb_query_extension_reply(c, shm_cookie, NULL); ++ xshm_opcode = shm_reply->major_opcode; + + has_mit_shm = shm_reply->present; + free(shm_reply); +-- +2.38.1 + diff --git a/mesa.spec b/mesa.spec index 0511724..3aba1f0 100644 --- a/mesa.spec +++ b/mesa.spec @@ -66,6 +66,8 @@ Source0: https://archive.mesa3d.org/mesa-%{ver}.tar.xz Source1: Mesa-MLAA-License-Clarification-Email.txt Patch10: gnome-shell-glthread-disable.patch +Patch11: 0001-glx-fix-xshm-check-to-init-xshm_opcode.patch + BuildRequires: meson >= 0.61.4 BuildRequires: gcc BuildRequires: gcc-c++