vc4: Flip the switch to run the GLSL compiler optimization loop once.
authorEric Anholt <eric@anholt.net>
Tue, 17 Jan 2017 23:38:55 +0000 (10:38 +1100)
committerEric Anholt <eric@anholt.net>
Sun, 29 Jan 2017 03:35:20 +0000 (19:35 -0800)
commit0079df0b2d126c476a3e8b40adb25a994393b7f2
treeac28e4d2e192bd799ffc8fbd7db6f0437b5c6792
parent7c5629a26912af9164bda17b7af5370f6b4302e4
vc4: Flip the switch to run the GLSL compiler optimization loop once.

This has almost no effect on shader-db:

total instructions in shared programs: 92572 -> 92611 (0.04%)
instructions in affected programs:     4486 -> 4525 (0.87%)

Looking at 2 of the 7 different shaders that were hurt (all of which were
in mupen64), they all appear to be just differences in order of
instructions at the NIR level.

The advantage is that this should significantly reduce time in the compiler.
src/gallium/drivers/vc4/vc4_screen.c