summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-01-10 14:57:16 +1300
committerEric Anholt <[email protected]>2015-01-10 15:24:46 +1300
commitc772c92153fdcd4ba4920b7ef1745ce83b09603b (patch)
treec674f7ce50d3c071c116d38441952e08d8af2bce /src/gallium/drivers/vc4/vc4_qir.h
parenta58ae83882b3ad3ecb53271f42cf1fd8f9c2907c (diff)
vc4: Split two notions of instructions having side effects.
Some ops can't be DCEd, while some of the ops that are just important due to the args they have can be.
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 0c2bca93d8b..ebec7ccfbe3 100644
--- a/src/gallium/drivers/vc4/vc4_qir.h
+++ b/src/gallium/drivers/vc4/vc4_qir.h
@@ -377,6 +377,7 @@ struct qreg qir_get_temp(struct vc4_compile *c);
int qir_get_op_nsrc(enum qop qop);
bool qir_reg_equals(struct qreg a, struct qreg b);
bool qir_has_side_effects(struct vc4_compile *c, struct qinst *inst);
+bool qir_has_side_effect_reads(struct vc4_compile *c, struct qinst *inst);
bool qir_is_multi_instruction(struct qinst *inst);
bool qir_depends_on_flags(struct qinst *inst);
bool qir_writes_r4(struct qinst *inst);