lima: drop unrequired opt from standalone compiler

In 0f0fa64eed 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 <nunes.erico@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29470>
This commit is contained in:
Timothy Arceri 2024-05-30 16:57:03 +10:00 committed by Marge Bot
parent 84216abd94
commit ce43d7eb7f
3 changed files with 0 additions and 12 deletions

View file

@ -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)
{

View file

@ -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

View file

@ -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);