vc4: Cook up the draw-time VPM setup info during shader compile.
authorEric Anholt <eric@anholt.net>
Sat, 10 Jan 2015 01:30:25 +0000 (14:30 +1300)
committerEric Anholt <eric@anholt.net>
Sat, 10 Jan 2015 02:24:56 +0000 (15:24 +1300)
commitb920ecf793bd419558a240014624add08774765d
treeb1ae0fb208547b3e14237f2fe202fb328500c937
parentc772c92153fdcd4ba4920b7ef1745ce83b09603b
vc4: Cook up the draw-time VPM setup info during shader compile.

This will give the compiler the chance to dead-code eliminate unused VPM
reads.  This is particularly a big deal in the CS where a bunch of vattrs
are just not going to be used.
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_draw.c
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qir.h