aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2016-05-02 12:21:45 -0700
committerEric Anholt <[email protected]>2016-05-06 10:25:55 -0700
commit8e2d0843c02daf5280184f179ae8ed440ac90d7f (patch)
treeafe35224d88a666ff210bc7bc2ebb4a668982137 /src/gallium/drivers/vc4/vc4_qir.h
parentdaaa9d579de4e776d8a6e9efafbbb587269a33db (diff)
vc4: Add a small QIR validate pass.
This has caught a couple of bugs during loop development so far, and I should probably have written it long ago.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h
index 04ca8ed7f4b..d1263b64362 100644
--- a/src/gallium/drivers/vc4/vc4_qir.h
+++ b/src/gallium/drivers/vc4/vc4_qir.h
@@ -480,6 +480,8 @@ void qir_dump(struct vc4_compile *c);
void qir_dump_inst(struct vc4_compile *c, struct qinst *inst);
const char *qir_get_stage_name(enum qstage stage);
+void qir_validate(struct vc4_compile *c);
+
void qir_optimize(struct vc4_compile *c);
bool qir_opt_algebraic(struct vc4_compile *c);
bool qir_opt_constant_folding(struct vc4_compile *c);