vc4: Pack the unorm-packing bits into a src MUL instruction when possible.
authorEric Anholt <eric@anholt.net>
Wed, 19 Aug 2015 04:26:05 +0000 (21:26 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 21 Aug 2015 06:43:04 +0000 (23:43 -0700)
commit8b36d107fdd6f6b91556fcdc3498df16803d4181
tree197465bb5fde7eb6081064552ce27d61785f6221
parent572a48366d9dfac6a7f9ee8f4d29832c496125e2
vc4: Pack the unorm-packing bits into a src MUL instruction when possible.

Now that we do non-SSA QIR instructions, we can take a NIR SSA src that's
only used by the unorm packing and just stuff the pack bits into it.

total instructions in shared programs: 98136 -> 97974 (-0.17%)
instructions in affected programs:     4149 -> 3987 (-3.90%)
src/gallium/drivers/vc4/vc4_opt_algebraic.c
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qir.c
src/gallium/drivers/vc4/vc4_qir.h
src/gallium/drivers/vc4/vc4_qpu_emit.c