summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2016-04-27 12:14:07 -0700
committerEric Anholt <eric@anholt.net>2016-07-13 23:54:15 -0700
commit44df061aaad96fc5db630ae69fb2fe2a03bb5659 (patch)
treefca4235e0746387a22f7ab33dcf385015a904cab /src/gallium/drivers/vc4/vc4_qir.h
parenta59da513d3229c883809ac2088c9612abcec1470 (diff)
downloadexternal_mesa3d-44df061aaad96fc5db630ae69fb2fe2a03bb5659.zip
external_mesa3d-44df061aaad96fc5db630ae69fb2fe2a03bb5659.tar.gz
external_mesa3d-44df061aaad96fc5db630ae69fb2fe2a03bb5659.tar.bz2
vc4: Add support for scheduling of branch instructions.
For now we don't fill the delay slots, and instead just drop in NOPs.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h
index fabdf10..e7ddfaa 100644
--- a/src/gallium/drivers/vc4/vc4_qir.h
+++ b/src/gallium/drivers/vc4/vc4_qir.h
@@ -362,6 +362,17 @@ struct qblock {
int index;
+ /* Instruction IPs for the first and last instruction of the block.
+ * Set by vc4_qpu_schedule.c.
+ */
+ uint32_t start_qpu_ip;
+ uint32_t end_qpu_ip;
+
+ /* Instruction IP for the branch instruction of the block. Set by
+ * vc4_qpu_schedule.c.
+ */
+ uint32_t branch_qpu_ip;
+
/** @{ used by vc4_qir_live_variables.c */
BITSET_WORD *def;
BITSET_WORD *use;