Revert "mesa, compiler: Move gl_texture_index to glsl_types.h"
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Fri, 4 Aug 2023 11:02:57 +0000 (06:02 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 13:14:35 +0000 (13:14 +0000)
commitb89a48e00d0713563aec852caed564affd486098
tree179a22fb723dad0ac32da57e9dcb537d2de088b8
parente3312455419c2cc7f178e1eddf5519c8ed449efb
Revert "mesa, compiler: Move gl_texture_index to glsl_types.h"

This reverts commit 1b836a52ea2dcc0b77a48a2a3d1f9052321cf325.  This
patch, while claiming to decouple things, actually increases coupling
because it leaks two OpenGL state tracker limits and an OpenGL state
tracker fixed binding enum into the entire compiler.  Nothing wants to
know these outside the OpenGL state tracker and the GL-specific compiler
passes.  Put them back where they were.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24491>
src/compiler/glsl/glsl_parser_extras.h
src/compiler/glsl_types.h
src/compiler/shader_enums.h
src/mesa/main/config.h
src/mesa/main/menums.h