vc4: Fix handling of non-XYZW swizzles in color outputs.
authorEric Anholt <eric@anholt.net>
Mon, 18 Aug 2014 18:23:04 +0000 (11:23 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 18 Aug 2014 22:27:43 +0000 (15:27 -0700)
commit489350e5701a4a0855e622fa12fbf3700101c5d7
treeaefc1a596eb3a032c346e2b38571530a6afc0e88
parent37992a4e390bad9f7d83ce29bb7d01ad01bfc13c
vc4: Fix handling of non-XYZW swizzles in color outputs.

The SWIZZLE_1 of the winsys destination was dereffing off the end of the
array, which surprisingly often worked out (since nobody reads the
rendered value anyway, so whatever junk was referenced in the QIR didn't
matter), but shader dumping would sometimes segfault.
src/gallium/drivers/vc4/vc4_program.c