From 60bed14d0fdc3a05b6251b4ffc6013b5d3ca3e0f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 26 Aug 2016 13:57:09 -0700 Subject: 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_qir.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/vc4/vc4_qir.h') diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h index a82c47c0341..36652167595 100644 --- a/src/gallium/drivers/vc4/vc4_qir.h +++ b/src/gallium/drivers/vc4/vc4_qir.h @@ -448,6 +448,7 @@ struct vc4_compile { struct qreg execute; struct qreg line_x, point_x, point_y; + /** boolean (~0 -> true) if the fragment has been discarded. */ struct qreg discard; struct qreg payload_FRAG_Z; struct qreg payload_FRAG_W; -- cgit v1.2.3