mesa: OpenGL 1.3 feature GL_ARB_texture_cube_map is not optional
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 15 Dec 2021 01:06:49 +0000 (17:06 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 15 Dec 2021 20:25:19 +0000 (20:25 +0000)
commit7649ab1f03f6e020baa64db63bc2cc40f1bbbd88
tree98c954de891559f42063aea28e5c2add9ac5908b
parentc11641ab2419f961bbaea0d4e1c806a4fea5f819
mesa: OpenGL 1.3 feature GL_ARB_texture_cube_map is not optional

Cheatsheet:

_mesa_has_ARB_texture_cube_map() becomes (true &&
ctx->Extensions.Version >=
_mesa_extension_table[...].version[ctx->API]).  The last value is 0 when
ctx->API is API_OPENGL_COMPAT and ~0 otherwise.  The whole function
effectively becomes (ctx->API == API_OPENGL_COMPAT).

_mesa_has_OES_texture_cube_map() becomes (true &&
ctx->Extensions.Version >=
_mesa_extension_table[...].version[ctx->API]).  The last value is 0 when
ctx->API is API_OPENGLES and ~0 otherwise.  The whole function
effectively becomes (ctx->API == API_OPENGLES).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14203>
16 files changed:
src/mesa/main/attrib.c
src/mesa/main/enable.c
src/mesa/main/extensions_table.h
src/mesa/main/fbobject.c
src/mesa/main/formatquery.c
src/mesa/main/genmipmap.c
src/mesa/main/get.c
src/mesa/main/get_hash_params.py
src/mesa/main/mtypes.h
src/mesa/main/texgetimage.c
src/mesa/main/teximage.c
src/mesa/main/texobj.c
src/mesa/main/texparam.c
src/mesa/main/texstorage.c
src/mesa/main/version.c
src/mesa/state_tracker/st_extensions.c