glsl: loop unroll adjustments
authorBrian Paul <brianp@vmware.com>
Wed, 7 Jan 2009 00:36:20 +0000 (17:36 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 7 Jan 2009 00:36:20 +0000 (17:36 -0700)
commit0b0d0dcdef2b914dceb30a8e9a80f403b0311efc
tree06bbd8cd27de59c0729e686565ab99dfbcc40d8e
parent1fa978c8911d00e7cac0a114110e98ebdbe4d57d
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