compiler/types: Remove unused GLSL_TYPE_FUNCTION and related functions
authorCaio Oliveira <caio.oliveira@intel.com>
Fri, 1 Sep 2023 17:50:31 +0000 (10:50 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Sep 2023 23:18:12 +0000 (23:18 +0000)
commit3890c60584b009bddcda6aee50647f556df0a95c
tree4ef92b6c71d6d88e1a8d821d44b901c232ff666f
parent0f41da9160252d65319a58e1f34083ef8aaf01fd
compiler/types: Remove unused GLSL_TYPE_FUNCTION and related functions

GLSL doesn't use that type.  SPIR-V used for a while but later started
relying on its own data structures and stopped using it.
See ca62e849d3c ("nir/spirv: Stop using glsl_type for function types")

If we were ever to add this one again, would be better to have a way to
grab a key for lookup that did not require allocations, right now that's
needed to inject return type as the first element in params array.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25160>
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/gl_nir_link_uniform_initializers.c
src/compiler/glsl/ir_clone.cpp
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h
src/compiler/nir/nir.c
src/compiler/nir_types.cpp
src/compiler/nir_types.h
src/intel/compiler/brw_shader.cpp
src/intel/compiler/brw_vec4_visitor.cpp
src/mesa/main/uniform_query.cpp