vc4: Restructure color packing as a series of channel replacements.
authorEric Anholt <eric@anholt.net>
Fri, 9 Jan 2015 02:32:29 +0000 (18:32 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 10 Jan 2015 00:54:12 +0000 (13:54 +1300)
commit72cb6619cb75a92901d372d687505a747a384571
tree90568090fa72cec2f3c6aa78cd274dd5453cece0
parent3093bfacf042516cd2a0fa2346da1e9df5f321ec
vc4: Restructure color packing as a series of channel replacements.

I'm using this in some WIP commits for doing blending in 8888 instead of
vec4.  But it also gives us these results immediately, thanks to allowing
more uniforms/immediates in the arguments:

total instructions in shared programs: 41027 -> 40960 (-0.16%)
instructions in affected programs:     4381 -> 4314 (-1.53%)
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