glx: initial plumbing to let users force-enable/disable extensions
authorMartin Peres <martin.peres@mupuf.org>
Thu, 15 Oct 2020 05:55:41 +0000 (08:55 +0300)
committerMartin Peres <martin.peres@mupuf.org>
Thu, 22 Oct 2020 04:47:28 +0000 (07:47 +0300)
commite19644967f20a6baf82c5ffd6973e2b25fac92b3
tree11728e67c40ee260709157865c7eb661ae7b615f
parent74722c3ab910921296a87596ea6d7460e1f75818
glx: initial plumbing to let users force-enable/disable extensions

This can be useful for debugging or working around bugs such as
Mesa#106 where Wine is expecting to find a visual that isn't
available.

v2:
 - split the indirect GL extension override to its own commit
 - memset the bitfields to 0 in __glXExtensionsCtrScreen

Reviewed-by: Adam Jackson <ajax@redhat.com>
v3:
 - slight rework necessary after splitting the computation of usable
   extensions (Ian)

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Martin Peres <martin.peres@mupuf.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7212>
src/glx/glxclient.h
src/glx/glxextensions.c
src/glx/glxextensions.h