Blame SOURCES/0001-glx-fix-xshm-check-to-init-xshm_opcode.patch

3532fe
From 808c054a42fd24a1aaefaeb1d95195fea9fb6e84 Mon Sep 17 00:00:00 2001
3532fe
From: Dave Airlie <airlied@redhat.com>
3532fe
Date: Wed, 7 Dec 2022 05:11:47 +1000
3532fe
Subject: [PATCH] glx: fix xshm check to init xshm_opcode.
3532fe
3532fe
Found and proposed by Ray Strode (halfline)
3532fe
3532fe
Fixes: 68e89401140d ("glx/drisw: use xcb instead of X to query connection")
3532fe
---
3532fe
 src/glx/drisw_glx.c | 1 +
3532fe
 1 file changed, 1 insertion(+)
3532fe
3532fe
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
3532fe
index c0d1e85fdc4..d7658eaf7c1 100644
3532fe
--- a/src/glx/drisw_glx.c
3532fe
+++ b/src/glx/drisw_glx.c
3532fe
@@ -874,6 +874,7 @@ check_xshm(Display *dpy)
3532fe
 
3532fe
    shm_cookie = xcb_query_extension(c, 7, "MIT-SHM");
3532fe
    shm_reply = xcb_query_extension_reply(c, shm_cookie, NULL);
3532fe
+   xshm_opcode = shm_reply->major_opcode;
3532fe
 
3532fe
    has_mit_shm = shm_reply->present;
3532fe
    free(shm_reply);
3532fe
-- 
3532fe
2.38.1
3532fe