glsl: propagate MaxUnrollIterations to the optimizer's loop unroller
authorBrian Paul <brianp@vmware.com>
Tue, 20 Mar 2012 23:43:12 +0000 (17:43 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 21 Mar 2012 19:46:36 +0000 (13:46 -0600)
commit7feabfe23dc54960abba34755f484f786575ac49
tree7345407a914f78e7071e7f9acdaaf6177e6d91c6
parent9bd38f3c674b91a89d9b572c5722faa00fb86654
glsl: propagate MaxUnrollIterations to the optimizer's loop unroller

Instead of the hard-coded value of 32.  Note that MaxUnrollIterations
defaults to 32 so there's no net change.  But the gallium state tracker
can override this.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/linker.cpp