frontend/dri: make the backgroundCallable extension optional
authorMarek Olšák <marek.olsak@amd.com>
Tue, 23 Aug 2022 02:28:58 +0000 (22:28 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 21 Sep 2022 14:54:50 +0000 (14:54 +0000)
commitc0a05b604af5510654b7a111fc8678297d79ab38
tree19ef927bcb70755867522322866a3e0d1bb5857f
parent7c1f8b63ad5a8d3e2fb36eae51881f437f988d09
frontend/dri: make the backgroundCallable extension optional

It's only needed by X11/DRI2. This allows glthread to be used by android,
drm, wayland, and device (EGL backend).

This is the only solution to allow the egl/drm backend to work with glthread
without ugly hacks between libgbm and libEGL.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18223>
src/gallium/frontends/dri/dri_context.c
src/gallium/frontends/dri/dri_screen.c