diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/broadcom/qpu/qpu_pack.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/broadcom/qpu/qpu_pack.c b/src/broadcom/qpu/qpu_pack.c index e70daf55a9f..7502bbfb9d6 100644 --- a/src/broadcom/qpu/qpu_pack.c +++ b/src/broadcom/qpu/qpu_pack.c @@ -1452,14 +1452,14 @@ v3d_qpu_instr_pack_branch(const struct v3d_device_info *devinfo, *packed_instr |= QPU_SET_FIELD(instr->branch.offset >> 24, VC5_QPU_BRANCH_ADDR_HIGH); + default: + break; + } - case V3D_QPU_BRANCH_DEST_REGFILE: + if (instr->branch.bdi == V3D_QPU_BRANCH_DEST_REGFILE || + instr->branch.bdu == V3D_QPU_BRANCH_DEST_REGFILE) { *packed_instr |= QPU_SET_FIELD(instr->branch.raddr_a, VC5_QPU_RADDR_A); - break; - - default: - break; } return true; |