Module: Mesa Branch: main Commit: 81e3b28f78016e852a4999fa627a13d11e0f9b71 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=81e3b28f78016e852a4999fa627a13d11e0f9b71
Author: Caio Oliveira <caio.olive...@intel.com> Date: Tue Dec 12 12:49:24 2023 -0800 compiler: Remove C++ static member pointers to builtin types When we moved the bulk of glsl_type to C, these globals were kept to avoid changes to compiler/glsl code in the MR. Now that landed, change the code to use the actual bultins directly. Acked-by: Timothy Arceri <tarc...@itsqueeze.com> Reviewed-by: Ian Romanick <ian.d.roman...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26658> --- src/compiler/builtin_types_cpp_h.py | 37 - src/compiler/glsl/ast_array_index.cpp | 2 +- src/compiler/glsl/ast_function.cpp | 10 +- src/compiler/glsl/ast_to_hir.cpp | 130 +- src/compiler/glsl/builtin_functions.cpp | 4744 ++++++++++---------- src/compiler/glsl/builtin_types.cpp | 295 +- src/compiler/glsl/builtin_variables.cpp | 22 +- src/compiler/glsl/glsl_lexer.ll | 258 +- src/compiler/glsl/glsl_parser.yy | 8 +- src/compiler/glsl/glsl_to_nir.cpp | 38 +- src/compiler/glsl/ir.cpp | 34 +- src/compiler/glsl/ir_builder_print_visitor.cpp | 26 +- src/compiler/glsl/ir_constant_expression.cpp | 2 +- src/compiler/glsl/ir_reader.cpp | 6 +- src/compiler/glsl/ir_validate.cpp | 82 +- src/compiler/glsl/lower_discard_flow.cpp | 2 +- src/compiler/glsl/lower_jumps.cpp | 4 +- src/compiler/glsl/lower_packing_builtins.cpp | 112 +- src/compiler/glsl/opt_rebalance_tree.cpp | 2 +- src/compiler/glsl/tests/array_refcount_test.cpp | 36 +- .../glsl/tests/opt_add_neg_to_sub_test.cpp | 6 +- src/compiler/glsl/tests/sampler_types_test.cpp | 2 +- src/compiler/glsl_types.h | 9 - src/compiler/glsl_types_impl.h | 4 - src/compiler/meson.build | 12 +- src/compiler/nir/meson.build | 2 +- 26 files changed, 2911 insertions(+), 2974 deletions(-) Diff: http://cgit.freedesktop.org/mesa/mesa/diff/?id=81e3b28f78016e852a4999fa627a13d11e0f9b71