nir: allow more nested loops to be unrolled
The innermost check was added to stop us from unrolling multiple loops in a single pass, and to stop outer loops from unrolling. When we successfully unroll a loop we need to run the analysis pass again before deciding if we want to go ahead an unroll a second loop. However the logic was flawed because it never tried to unroll any nested loops other than the first innermost loop it found. If this innermost loop is not unrolled we end up skipping all other nested loops. No change to shader-db. Unrolls a loop in a shader from the game Prey when running on DXVK.
Showing with 17 additions and 14 deletions