nir: bump loop max unroll limit
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 18 Jan 2017 02:12:37 +0000 (13:12 +1100)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Tue, 24 Jan 2017 22:43:29 +0000 (09:43 +1100)
commitdd65f0efc91418bbafd5cc4b63840b5a734d43d1
tree33ea2eaa194dff3886d69043bdde474f89970ebe
parent34ab9b0947cdc1f035ca8379a92677b66ec604a5
nir: bump loop max unroll limit

The original number was chosen in an attempt to match the limits applied to
GLSL IR.

A look at the git history of the why these limits were chosen for GLSL IR
shows it was more to do with the slow speed of unrolling large loops in
GLSL IR than anything else. The speed of loop unrolling in NIR is not a
problem so we may wish to bump this even higher in future.

No shader-db change, however a furture change will disbale the GLSL IR
optimisation loop in the i965 backend results in 4 loops from The Talos
Principle failing to unroll. Bumping the limit allows them to unroll which
results in the instruction count matching the previous output from when the
GLSL IR opts were still enabled.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_opt_loop_unroll.c