vc4: Match VS outputs to FS inputs.
authorEric Anholt <eric@anholt.net>
Mon, 13 Oct 2014 07:24:57 +0000 (08:24 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 13 Oct 2014 12:23:48 +0000 (13:23 +0100)
commit5d72a1c95662109b1338605da83329dd25e00859
treeb129986448bded3bc8f79c2f735c13aefb96b44a
parentd561a42bc1fb2d2bd090630d50ff4030aebd518e
vc4: Match VS outputs to FS inputs.

If the VS doesn't output a value that the FS needs, we still need to read
the right contents for the remaining FS inputs, by emitting padding.  And
if the VS outputs something the FS doesn't need, we shouldn't put it in
the VPM at all (so the code producing it can get DCEed).

Fixes 77 piglit tests.
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qir.h