v3d: Emit the lowered uniform just before its first use in a block.
authorEric Anholt <eric@anholt.net>
Mon, 16 Jul 2018 20:27:13 +0000 (13:27 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 16 Jul 2018 21:39:59 +0000 (14:39 -0700)
commit2baab6bf2a9c3a1ecfb29dce13d8d721101b6842
treead1cfab317ba1938e0789c07a5ff4b89a07344c4
parent26f830d9fc5fb52a1e70839813b4c6ddbcb3a876
v3d: Emit the lowered uniform just before its first use in a block.

total instructions in shared programs: 98578 -> 98119 (-0.47%)
instructions in affected programs:     27571 -> 27112 (-1.66%)

and it also eliminates most spills/fills on the CTS's randomized uniform
usage testcases.
src/broadcom/compiler/vir_lower_uniforms.c