mesa: Actually use the Mesa IR optimizer for ARB programs.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Aug 2014 12:33:14 +0000 (05:33 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 4 Aug 2014 22:43:56 +0000 (15:43 -0700)
commitf82f2fb3dc770902f1657ab1c22e6004faa3afab
tree40118de1d6a88933d7f9556070da883c6fc33dc3
parentb48621c348fef53cc226b5ca8c08e4c71d24edec
mesa: Actually use the Mesa IR optimizer for ARB programs.

On Haswell, this cuts 1-3 instructions from 183 vertex shaders in
"Shadowrun Returns", "Shatter", and "Trine 2."  It adds 2 instructions
to a single fragment shader in "Closure."

total instructions in shared programs: 278803 -> 278546 (-0.09%)
instructions in affected programs:     41930 -> 41673 (-0.61%)

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/program/arbprogparse.c