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