glx: fix xshm check to init xshm_opcode.
authorDave Airlie <airlied@redhat.com>
Tue, 6 Dec 2022 19:11:47 +0000 (05:11 +1000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 6 Dec 2022 22:31:14 +0000 (22:31 +0000)
commit57b7102ef96a282128ead4e7a8c03c7fdb53e71a
tree364f74c4e6305fb37d9f0836e74ee6ec8efee488
parent2ccf481c17ccded161b9eecb63a257d81056e3ec
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")
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20188>
src/glx/drisw_glx.c