From 6c86b56c0644b64a4e817ab58f1c1260ac457ebc Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 27 Nov 2024 14:40:04 +1100 Subject: [PATCH] glsl: disable function return lowering in glsl ir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We just let the nir lowering pass do it instead. Reviewed-by: Marek Olšák Part-of: --- src/compiler/glsl/glsl_parser_extras.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp index aa309d97161..2ac16a57c87 100644 --- a/src/compiler/glsl/glsl_parser_extras.cpp +++ b/src/compiler/glsl/glsl_parser_extras.cpp @@ -2509,8 +2509,7 @@ do_common_optimization(exec_list *ir, bool linked, OPT(do_minmax_prune, ir); OPT(do_rebalance_tree, ir); OPT(do_algebraic, ir, native_integers, options); - OPT(do_lower_jumps, ir, true, true, options->EmitNoMainReturn, - options->EmitNoCont); + OPT(do_lower_jumps, ir, true, false, false, options->EmitNoCont); /* If an optimization pass fails to preserve the invariant flag, calling * the pass only once earlier may result in incorrect code generation. Always call