summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qpu.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2016-03-10 12:53:57 -0800
committerEric Anholt <[email protected]>2016-07-12 17:41:59 -0700
commit89918c1e74e454af119e7ae23f3ed66fc26abc4b (patch)
tree478573a747b23657f6c597e90930be5b3d54da9b /src/gallium/drivers/vc4/vc4_qpu.h
parentf2eb8e30529780ef7f69f8f5a74707feaa96834c (diff)
vc4: Implement live intervals using a CFG.
Right now our CFG is always a trivial single basic block, but that will change when enable loops.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qpu.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_qpu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qpu.h b/src/gallium/drivers/vc4/vc4_qpu.h
index b7dab1615d2..83fa36e6b2c 100644
--- a/src/gallium/drivers/vc4/vc4_qpu.h
+++ b/src/gallium/drivers/vc4/vc4_qpu.h
@@ -153,6 +153,12 @@ bool qpu_inst_is_tlb(uint64_t inst) ATTRIBUTE_CONST;
int qpu_num_sf_accesses(uint64_t inst) ATTRIBUTE_CONST;
void qpu_serialize_one_inst(struct vc4_compile *c, uint64_t inst);
+static inline enum qpu_cond
+qpu_cond_complement(enum qpu_cond cond)
+{
+ return cond ^ 1;
+}
+
static inline uint64_t
qpu_load_imm_f(struct qpu_reg dst, float val)
{