vc4: Add dead code elimination.
authorEric Anholt <eric@anholt.net>
Fri, 4 Jul 2014 16:48:23 +0000 (09:48 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 9 Aug 2014 01:59:47 +0000 (18:59 -0700)
commitd9d1c14430aaeb5b22aa66b269ba288e3df24103
tree6de477f96625c83d4dc364c76af50753160afd19
parent1d23d55ae97d07b6eb70a3e37a91ecb7de38d8d2
vc4: Add dead code elimination.

This cleans up a bunch of noise in the compiled coordinate shaders (since
we don't need the varying outputs), and also from writemasked instructions
with negated src operands.
src/gallium/drivers/vc4/Makefile.sources
src/gallium/drivers/vc4/vc4_opt_dead_code.c [new file with mode: 0644]
src/gallium/drivers/vc4/vc4_qir.c
src/gallium/drivers/vc4/vc4_qir.h