diff options
author | Eric Anholt <[email protected]> | 2014-08-18 10:53:35 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-08-18 15:27:43 -0700 |
commit | 50b4293eb3f26609c28c37898877d15e3c597702 (patch) | |
tree | 646e6cb78407e056cce1d5faae019b7ce8e4e6d3 /src/gallium/drivers/vc4/vc4_qir.h | |
parent | 8795341e2c113176286e9bb6ef3fe716905d7d30 (diff) |
vc4: Add a helper for QOP_R4_UNPACK_[ABCD].
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.h')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h index c25a58e831e..e205a533385 100644 --- a/src/gallium/drivers/vc4/vc4_qir.h +++ b/src/gallium/drivers/vc4/vc4_qir.h @@ -287,4 +287,12 @@ qir_CMP(struct qcompile *c, struct qreg cmp, struct qreg a, struct qreg b) return t; } +static inline struct qreg +qir_R4_UNPACK(struct qcompile *c, int i) +{ + struct qreg t = qir_get_temp(c); + qir_emit(c, qir_inst(QOP_R4_UNPACK_A + i, t, c->undef, c->undef)); + return t; +} + #endif /* VC4_QIR_H */ |