vc4: Add support for two-sided color.
authorEric Anholt <eric@anholt.net>
Tue, 30 Sep 2014 23:24:26 +0000 (16:24 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 8 Oct 2014 15:45:16 +0000 (17:45 +0200)
commit581418585e5dee3cca1b42c472b72aa9c74140bb
treeb7f661760a668fc70fc575bf3ac956e874b18e65
parent4dccdbf5cb46a9e36d92f675b0b6ef01756b8af0
vc4: Add support for two-sided color.

It's fairly easy, thanks to Rob Clark's lowering code.  Fixes
two-sided-lighting and 4 vertex-program-two-side testcases, while
regressing 8 testcases that involve enabling two-sided color while only
initializing one of the two colors in the VS.  If you're enabling two
sided color, it's of course expected that you really do set up both
colors, so this is still an improvement (and when we set up a linker for
TGSI, we'll hopefully fix those 8 fails).
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_program.c