vc4: Handle discards while in control flow.
authorEric Anholt <eric@anholt.net>
Fri, 26 Aug 2016 20:57:09 +0000 (13:57 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 29 Aug 2016 18:03:11 +0000 (11:03 -0700)
commit60bed14d0fdc3a05b6251b4ffc6013b5d3ca3e0f
treea66021502eb0ced924df355e1f544914248ab714
parentb9a74fbec7e3fe8c159a3a18447a416e09c68693
vc4: Handle discards while in control flow.

I missed this while adding loop support because the discard test inside a
loop was crashing before, anyway.  Fixes piglit glsl-fs-discard-04.
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qir.h