vc4: Avoid using undefined values when there's no color write.
authorEric Anholt <eric@anholt.net>
Thu, 21 Aug 2014 19:47:14 +0000 (12:47 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 22 Aug 2014 17:16:58 +0000 (10:16 -0700)
commitcc68be262003f371d2320f98e57931fcef1c7c8c
tree6c7e087158b7a7af7a8e48f1849e1b5ed880a7cc
parentae83955b1da238ccf180cba568f4269f01bb21fa
vc4: Avoid using undefined values when there's no color write.

The simulator assertion fails when you read-before-write a temporary
value, and there's no point in doing the packing if there was no color
written.
src/gallium/drivers/vc4/vc4_program.c