Commit 1fdb2154 authored by Timothy Arceri's avatar Timothy Arceri

Revert "nir: bump loop unroll limit to 96."

This reverts commit 2d36efdb.

This raised limit turns out to harmful for more complex shaders,
it causes excessive spilling in some Bioshock Infinite shaders.

The fps for the ssao demo on radv remains unchanged when reverting
Reviewed-by: default avatarDave Airlie <>
Reviewed-by: Samuel Pitoiset's avatarSamuel Pitoiset <>
parent fb077b07
......@@ -33,10 +33,8 @@
* 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).
/* 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment