glsl: loop unroll adjustments
authorBrian Paul <brianp@vmware.com>
Wed, 7 Jan 2009 00:36:20 +0000 (17:36 -0700)
committerAlan Hourihane <alanh@vmware.com>
Fri, 9 Jan 2009 11:16:36 +0000 (11:16 +0000)
commitac8a33671a7aaa0527490a1615495fac73081bc0
treedfd9fe1b7d258a70c54cff275d462a61b783c37a
parent12fe642f96a2a9439f9ac8751151ae6e7fa20049
glsl: loop unroll adjustments

Add a "max complexity" heuristic to allow unrolling long loops with small
bodies and short loops with large bodies.

The loop unroll limits may need further tweaking...
src/mesa/shader/slang/slang_codegen.c