Created
October 8, 2019 15:22
-
-
Save anarsoul/c347b19253794018adca2388c66e524a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/gallium/drivers/lima/lima_program.c b/src/gallium/drivers/lima/lima_program.c | |
index e1237642482..4a2da03119f 100644 | |
--- a/src/gallium/drivers/lima/lima_program.c | |
+++ b/src/gallium/drivers/lima/lima_program.c | |
@@ -70,6 +70,7 @@ static const nir_shader_compiler_options fs_nir_options = { | |
.lower_fdot = true, | |
.lower_bitops = true, | |
.lower_vector_cmp = true, | |
+ .max_unroll_iterations = 32 * 1024 * 1024, | |
}; | |
static const struct nir_lower_tex_options tex_options = { | |
@@ -220,10 +221,7 @@ lima_program_optimize_fs_nir(struct nir_shader *s) | |
NIR_PASS(progress, s, nir_opt_algebraic); | |
NIR_PASS(progress, s, nir_opt_constant_folding); | |
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, nir_var_all); | |
NIR_PASS(progress, s, lima_nir_split_load_input); | |
} while (progress); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment