mesa: add _mesa_is_api_gles2() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 5 Apr 2023 01:50:18 +0000 (11:50 +1000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Apr 2023 08:07:35 +0000 (08:07 +0000)
commitbf8f11a2de848f288159fc8bba9d0152665b3997
treead742207ed481cc2e80826c1dbd7aaa14d6260c7
parent86ad0356b6a8cc5f8b338cf7b92149b6e81f08e2
mesa: add _mesa_is_api_gles2() helper

The glsl compiler has been reworked to avoid passing gl_context around
so that we can avoid expensive recompiles across the code base for
minor changes. This helper will help us avoid passing gl_context around
where its otherwise unrequired.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22305>
src/mesa/main/context.h
src/mesa/main/menums.h