summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2016-08-26 13:57:09 -0700
committerEric Anholt <[email protected]>2016-08-29 11:03:11 -0700
commit60bed14d0fdc3a05b6251b4ffc6013b5d3ca3e0f (patch)
treea66021502eb0ced924df355e1f544914248ab714 /src/gallium/drivers/vc4/vc4_qir.h
parentb9a74fbec7e3fe8c159a3a18447a416e09c68693 (diff)
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.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.h1
1 files changed, 1 insertions, 0 deletions
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;