mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
freedreno/ir3: use move_load_const pass
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
7235c144a6
commit
f489fa1f3f
1 changed files with 3 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
#include "nir/tgsi_to_nir.h"
|
||||
|
||||
|
||||
static const nir_shader_compiler_options options = {
|
||||
.lower_fpow = true,
|
||||
.lower_scmp = true,
|
||||
|
|
@ -204,6 +205,8 @@ ir3_optimize_nir(struct ir3_shader *shader, nir_shader *s,
|
|||
|
||||
OPT_V(s, nir_remove_dead_variables, nir_var_local);
|
||||
|
||||
OPT_V(s, nir_move_load_const);
|
||||
|
||||
if (fd_mesa_debug & FD_DBG_DISASM) {
|
||||
debug_printf("----------------------\n");
|
||||
nir_print_shader(s, stdout);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue