mapi: Return NULL function pointers for GL_EXT_debug_marker
authorLepton Wu <lepton@chromium.org>
Thu, 25 Jun 2020 20:52:24 +0000 (13:52 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jul 2020 23:45:56 +0000 (23:45 +0000)
commita2065917cc8f95f76c2926d8d7cb4bf3c9ff7de1
tree95625b92bb60216dc7078cbe3aeb0f846ebe68c4
parent258165bed4d5313a138b4375f8ed463fcba7fcb2
mapi: Return NULL function pointers for GL_EXT_debug_marker

Mesa returns a stub function pointer to glAnything for years.
Android framework till API level 30 just uses function pointers
returned from eglGetProcAddress without checking if the underlying
extension is supported. If we return stub pointers for functions
in GL_EXT_debug_marker, Android just uses our stub functions instead
of its own stubs and then fail the dEQP. In the past, the issue
didn't show up because mesa only has limited slots and run out of slots
before Android calls eglGetProcAddress on functions inside
GL_EXT_debug_marker.

Signed-off-by: Lepton Wu <lepton@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5652>
src/mapi/mapi_glapi.c