diff options
author | Eric Anholt <[email protected]> | 2018-01-04 22:47:54 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-01-12 21:54:18 -0800 |
commit | 2bd378647bebd41338baf9c6a9297a3a72c84e84 (patch) | |
tree | 2c9794131a43ce27dd091215d649f4586d29a376 /src/broadcom/qpu/qpu_instr.h | |
parent | 5f227ac2104e08ad434c78a472ef9ac21ebdfe73 (diff) |
broadcom/vc5: Add support for QPU pack/unpack/disasm of small immediates.
Diffstat (limited to 'src/broadcom/qpu/qpu_instr.h')
-rw-r--r-- | src/broadcom/qpu/qpu_instr.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/broadcom/qpu/qpu_instr.h b/src/broadcom/qpu/qpu_instr.h index cab1885acc4..468fe89facd 100644 --- a/src/broadcom/qpu/qpu_instr.h +++ b/src/broadcom/qpu/qpu_instr.h @@ -395,6 +395,16 @@ v3d_qpu_flags_unpack(const struct v3d_device_info *devinfo, struct v3d_qpu_flags *cond); bool +v3d_qpu_small_imm_pack(const struct v3d_device_info *devinfo, + uint32_t value, + uint32_t *packed_small_immediate); + +bool +v3d_qpu_small_imm_unpack(const struct v3d_device_info *devinfo, + uint32_t packed_small_immediate, + uint32_t *small_immediate); + +bool v3d_qpu_instr_pack(const struct v3d_device_info *devinfo, const struct v3d_qpu_instr *instr, uint64_t *packed_instr); |