nir: add indirect loop unrolling to compiler options
This is where it should be rather than having to pass it into the optimisation pass every time. It also allows us to call the loop analysis pass without having to duplicate these options which we will do later in this series. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12064>
This commit is contained in:

committed by
Marge Bot

parent
a654e39f15
commit
a9ed4538ab
@@ -1548,10 +1548,7 @@ vc4_optimize_nir(struct nir_shader *s)
|
||||
}
|
||||
|
||||
NIR_PASS(progress, s, nir_opt_undef);
|
||||
NIR_PASS(progress, s, nir_opt_loop_unroll,
|
||||
nir_var_shader_in |
|
||||
nir_var_shader_out |
|
||||
nir_var_function_temp);
|
||||
NIR_PASS(progress, s, nir_opt_loop_unroll);
|
||||
} while (progress);
|
||||
}
|
||||
|
||||
@@ -2195,6 +2192,7 @@ static const nir_shader_compiler_options nir_options = {
|
||||
.has_fsub = true,
|
||||
.has_isub = true,
|
||||
.max_unroll_iterations = 32,
|
||||
.force_indirect_unrolling = (nir_var_shader_in | nir_var_shader_out | nir_var_function_temp),
|
||||
};
|
||||
|
||||
const void *
|
||||
|
Reference in New Issue
Block a user