diff options
author | Eric Anholt <[email protected]> | 2015-03-30 10:38:21 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-03-30 12:57:45 -0700 |
commit | 8c5dcdbccb68b73d2856d9c1faafadc536e682e3 (patch) | |
tree | e8865f27d14237fdd3892b5e134f8f4d8f5404a3 /common.py | |
parent | dbe67d76e0487b04a7b6081d9d46666db3c3ee3e (diff) |
vc4: Add a constant folding pass.
This cleans up some pointless operations generated by the in-driver mul24
lowering (commonly generated by making a vec4 index for a matrix in a
uniform array).
I could fill in other operations, but pretty much anything else ought to
be getting handled at the NIR level, I think.
total uniforms in shared programs: 13423 -> 13421 (-0.01%)
uniforms in affected programs: 346 -> 344 (-0.58%)
Diffstat (limited to 'common.py')
0 files changed, 0 insertions, 0 deletions