mesa/src/glx
Qiang Yu c50bdacbda glx: fix regression for drawable type detection
Newer version of XServer supporting GLX_DRAWABLE_TYPE query also
support query with raw X11 window ID besides GLXWindow ID. So we
should not limit the suppported type to GLXPbuffer when query
success.

Otherwise can't start GLX application on newer XServer with:

  libGL error: GLX drawable type is not supported
  libGL error: GLX drawable type is not supported
  X Error of failed request:  GLXBadContext
    Major opcode of failed request:  149 (GLX)
    Minor opcode of failed request:  5 (X_GLXMakeCurrent)
    Serial number of failed request:  35
    Current serial number in output stream:  35

Fixes: 6625c960c5 ("glx: check drawable type before create drawble")

Tested-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14120>
2021-12-09 00:52:17 +00:00
..
apple glx: Fix macOS build. 2021-05-02 14:16:07 +00:00
tests glx: add a workaround to glXDestroyWindow for Viewperf2020/Sw 2021-11-17 21:26:54 +00:00
windows glx: Remove windows' stub {bind,release}_text_image context hooks 2021-03-19 11:13:07 -04:00
applegl_glx.c glx: Implement GLX_EXT_no_config_context 2021-04-23 21:15:19 +00:00
clientattrib.c glx: Move __glFreeAttributeState next to its one caller 2021-09-27 09:36:44 -04:00
clientinfo.c glx: Stop pretending the GLX major number isn't 1 2021-04-29 20:34:25 +00:00
compsize.c
create_context.c glx/drirc: add a force_direct_glx_context option 2021-11-04 13:59:00 +01:00
dri2.c Revert "glx: s/Display */struct glx_display */ over internal API" 2021-05-03 15:00:41 -04:00
dri2.h
dri2_glx.c glx: add drawable type argument when create drawable 2021-12-07 03:26:13 +00:00
dri2_priv.h glx: Delegate the core of glXGetScreenDriver to the GLX screen vtable 2020-10-21 10:24:31 -04:00
dri3_glx.c loader/dri3: add drawable type set by GLX and EGL 2021-12-07 03:26:13 +00:00
dri3_priv.h gallium: add PIPE_CAP_PREFER_BACK_BUFFER_REUSE 2021-09-29 08:14:57 +00:00
dri_common.c glx: fix regression for drawable type detection 2021-12-09 00:52:17 +00:00
dri_common.h glx/dri: Collect the GLX context attributes in a struct 2021-08-18 21:11:02 +00:00
dri_common_interop.c
dri_common_query_renderer.c
drisw_glx.c glx: add drawable type argument when create drawable 2021-12-07 03:26:13 +00:00
drisw_priv.h
driwindows_glx.c glx: add drawable type argument when create drawable 2021-12-07 03:26:13 +00:00
eval.c
g_glxglvnddispatchfuncs.c glx: init __GLXvendorInfo to NULL 2021-04-29 20:34:25 +00:00
g_glxglvnddispatchindices.h glx: Provide glvnd wrapper for glXSwapIntervalEXT 2021-01-22 22:34:23 -08:00
glx_error.c glx: Stash a copy of the XExtCodes in the glx_display 2021-04-29 20:34:25 +00:00
glx_error.h
glx_pbuffer.c glx: add drawable type argument when create drawable 2021-12-07 03:26:13 +00:00
glx_query.c glx: Remove unused opcode argument to __glX{Get,QueryServer}String 2021-04-29 20:34:25 +00:00
glxclient.h glx: add drawable type argument when create drawable 2021-12-07 03:26:13 +00:00
glxcmds.c glx: add drawable type argument when create drawable 2021-12-07 03:26:13 +00:00
glxconfig.c glx: Default sRGBCapable in the same place as the other config attribs 2021-04-13 22:58:58 +00:00
glxconfig.h glx: Clean up fbconfig attribute handling 2021-04-13 22:58:58 +00:00
glxcurrent.c util: Add a helper macro for defining initial-exec variables. 2021-06-02 03:10:49 +00:00
glxext.c glx: Don't strip off window/pixmap support from float fbconfigs 2021-09-27 09:36:51 -04:00
glxextensions.c glx: Stop force-enabling extensions "implied" by GLX 1.3 2021-04-29 20:34:25 +00:00
glxextensions.h glx: Stop force-enabling extensions "implied" by GLX 1.3 2021-04-29 20:34:25 +00:00
glxglvnd.c
glxglvnd.h
glxglvnddispatchfuncs.h
glxhash.c
glxhash.h
indirect_glx.c glx: Move __glFreeAttributeState next to its one caller 2021-09-27 09:36:44 -04:00
indirect_init.h
indirect_texture_compression.c
indirect_transpose_matrix.c
indirect_vertex_array.c glx: update fallthrough comments 2020-12-01 10:04:41 +01:00
indirect_vertex_array.h
indirect_vertex_array_priv.h
indirect_vertex_program.c
indirect_window_pos.c
meson.build glx: Don't pointlesly add -D_REENTRANT to libGL's cflags 2021-04-13 22:58:58 +00:00
packrender.h
packsingle.h
pixel.c
pixelstore.c
query_renderer.c
render2.c
renderpix.c
single2.c glx: Remove unused opcode argument to __glX{Get,QueryServer}String 2021-04-29 20:34:25 +00:00
singlepix.c glapi: Remove remnants of EXT_paletted_texture and the imaging subset 2021-12-08 03:42:44 +00:00
vertarr.c
xfont.c