From ce43d7eb7f97bdde61b184a99940c4b03c2f0929 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Thu, 30 May 2024 16:57:03 +1000 Subject: [PATCH] lima: drop unrequired opt from standalone compiler In 0f0fa64eed06 do_mat_op_to_vec() was moved out of the linker and into the compiler so there is no reason to call it again. Reviewed-by: Erico Nunes Part-of: --- src/gallium/drivers/lima/standalone/glsl.cpp | 8 -------- src/gallium/drivers/lima/standalone/glsl.h | 2 -- .../drivers/lima/standalone/lima_compiler_cmdline.c | 2 -- 3 files changed, 12 deletions(-) diff --git a/src/gallium/drivers/lima/standalone/glsl.cpp b/src/gallium/drivers/lima/standalone/glsl.cpp index 7b929e9b074..ed57078b8d3 100644 --- a/src/gallium/drivers/lima/standalone/glsl.cpp +++ b/src/gallium/drivers/lima/standalone/glsl.cpp @@ -26,14 +26,6 @@ #include "compiler/glsl/ir.h" #include "compiler/glsl/ir_optimization.h" -void -lima_do_glsl_optimizations(struct exec_list *ir) -{ - _mesa_print_ir(stdout, ir, NULL); - do_mat_op_to_vec(ir); - _mesa_print_ir(stdout, ir, NULL); -} - int st_glsl_type_size(const glsl_type *type, bool bindless) { diff --git a/src/gallium/drivers/lima/standalone/glsl.h b/src/gallium/drivers/lima/standalone/glsl.h index 63a272bbf94..2fb472006e6 100644 --- a/src/gallium/drivers/lima/standalone/glsl.h +++ b/src/gallium/drivers/lima/standalone/glsl.h @@ -26,8 +26,6 @@ extern "C" { #endif -void lima_do_glsl_optimizations(struct exec_list *ir); - int st_glsl_type_size(const struct glsl_type *type, bool bindless); #ifdef __cplusplus diff --git a/src/gallium/drivers/lima/standalone/lima_compiler_cmdline.c b/src/gallium/drivers/lima/standalone/lima_compiler_cmdline.c index 3e5971fe4ce..f1412498410 100644 --- a/src/gallium/drivers/lima/standalone/lima_compiler_cmdline.c +++ b/src/gallium/drivers/lima/standalone/lima_compiler_cmdline.c @@ -110,8 +110,6 @@ load_glsl(unsigned num_files, char* const* files, gl_shader_stage stage) if (!prog) errx(1, "couldn't parse `%s'", files[0]); - lima_do_glsl_optimizations(prog->_LinkedShaders[stage]->ir); - nir_shader *nir = glsl_to_nir(&local_ctx.Const, prog, stage, nir_options); gl_nir_inline_functions(nir);