mesa, compiler: Move gl_texture_index to glsl_types.h
authorYonggang Luo <luoyonggang@gmail.com>
Sat, 3 Jun 2023 22:48:50 +0000 (06:48 +0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 7 Jun 2023 00:33:33 +0000 (00:33 +0000)
commit1b836a52ea2dcc0b77a48a2a3d1f9052321cf325
tree8425812726099eacc73e3728e268828fa469d6c0
parentab73f717d91529a96af536f9e661200c9c2a1b1f
mesa, compiler: Move gl_texture_index to glsl_types.h

This move is done for decouple glsl_types.h from src/mesa/*

This is achieved by move gl_texture_index from src/mesa/main/menums.h to src/compiler/shader_enums.h
And move ATOMIC_COUNTER_SIZE,MAX_VERTEX_STREAMS from src/mesa/main/config.h to src/compiler/shader_enums.h

Move include main/[config|menums].h into glsl/glsl_parser_extras.h from glsl_types.h
As now glsl_types.h should not include headers from src/mesa/*

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23420>
src/compiler/glsl/glsl_parser_extras.h
src/compiler/glsl_types.h
src/compiler/nir_types.cpp
src/compiler/shader_enums.c
src/compiler/shader_enums.h
src/mesa/main/config.h
src/mesa/main/menums.h