diff options
Diffstat (limited to 'src/compiler/nir/nir_opt_loop_unroll.c')
-rw-r--r-- | src/compiler/nir/nir_opt_loop_unroll.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_loop_unroll.c b/src/compiler/nir/nir_opt_loop_unroll.c index 79d04f978bc..dae5bfc9020 100644 --- a/src/compiler/nir/nir_opt_loop_unroll.c +++ b/src/compiler/nir/nir_opt_loop_unroll.c @@ -33,8 +33,10 @@ * to give about the same results. Around 5 instructions per node. But some * loops that would unroll with GLSL IR fail to unroll if we set this to 25 so * we set it to 26. + * This was bumped to 96 because it unrolled more loops with a positive + * effect (vulkan ssao demo). */ -#define LOOP_UNROLL_LIMIT 26 +#define LOOP_UNROLL_LIMIT 96 /* Prepare this loop for unrolling by first converting to lcssa and then * converting the phis from the loops first block and the block that follows |