diff options
author | Rob Clark <[email protected]> | 2018-06-05 13:42:21 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-06-19 13:02:28 -0400 |
commit | f489fa1f3f83f89fb284a5f6f9fd6dae2c3c747a (patch) | |
tree | b71d473c0df0eef9f4b5daa3095a0f1d0fdcee5e /src/gallium/drivers/freedreno | |
parent | 7235c144a64a444a4c7619a6f539676f7a2d16d9 (diff) |
freedreno/ir3: use move_load_const pass
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_nir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_nir.c index 8f50b2741f0..9ada3889eb9 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_nir.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_nir.c @@ -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); |