vc4: Convert uniforms lowering to work with multiple blocks.
authorEric Anholt <eric@anholt.net>
Sat, 9 Jul 2016 00:10:38 +0000 (17:10 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 12 Jul 2016 22:47:26 +0000 (15:47 -0700)
commit46ec025ba9fdb78346ec0eb671a0c4218ab632a1
treed880a247e475c6ee02e09a8e21f76d910e6c23ca
parent0c923e6c33059b3ba0c29cbc920c2918e55f54db
vc4: Convert uniforms lowering to work with multiple blocks.

We still decide which uniform to lower based on how many
instructions-that-need-lowering use that uniform, but now we emit a new
temporary uniform load in each of the basic blocks containing an
instruction being lowered.

This commit is best reviewed with diff -b.
src/gallium/drivers/vc4/vc4_qir_lower_uniforms.c