mesa/src/panfrost
Pierre-Eric Pelloux-Prayer 1cb5c1775b glx: fix querying GLX_FBCONFIG_ID for Window
This commit fixes apps using the following sequence:
1. XCreateWindow(dpy) -> win
2. glXCreateContextAttribsARB(dpy, ...) -> ctx
3. glXMakeCurrent(dpy, win, ctx)
4. glXQueryDrawable(dpy, win, GLX_FBCONFIG_ID, ...)

glXQueryDrawable returned 0 (while correctly returning a valid
GLXFCONFIG_ID for other types of drawables).

This commit adds the same dance as driInferDrawableConfig to get
the GLX visual from the Window, and then the GLXFBCONFIG_ID of
this visual.

This fixes:
* piglit: glx-query-drawable --attr=GLX_FBCONFIG_ID --type=WINDOW
* Maya which uses the config ID from step 4 as an input to
glXChooseFBConfig.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14174>
2021-12-16 01:21:36 +00:00
..
bifrost treewide: drop mtypes/macros includes from main 2021-12-08 22:14:45 +00:00
ci glx: fix querying GLX_FBCONFIG_ID for Window 2021-12-16 01:21:36 +00:00
drm-shim panfrost: Handle AFBC_FEATURES in drm-shim 2021-11-22 13:12:20 +00:00
ds pps: allow drivers to report timestamps in their own time domain 2021-11-22 11:52:46 +00:00
include panfrost: Remove unused MIDGARD_NO_AFBC quirk 2021-10-22 19:33:38 -04:00
lib panfrost: Add Valhall support to pandecode 2021-12-06 20:46:09 +00:00
midgard pan/mdg: Fix definition of UBO unpack 2021-12-14 03:42:28 +00:00
perf panfrost: Fix GPU ID for t76x in get_perf_config 2021-07-12 09:07:48 +00:00
shared util: Add helgrind support for simple_mtx 2020-11-24 21:03:34 +00:00
util panfrost: Introduce PAN_MAX_VARYINGS define 2021-10-05 21:13:52 +00:00
vulkan panvk: Add check for null fence 2021-12-07 21:18:44 +00:00
meson.build panfrost: drm-shim support 2021-08-17 22:06:17 +00:00