broadcom/qpu: set VC5_QPU_RADDR_A out of the switch at _pack_branch

Detected after mesa added Wimplicit-fallthrough project wide.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5769>
This commit is contained in:
Neil Roberts 2020-07-05 15:45:19 +02:00 committed by Alejandro Piñeiro
parent ec4d3def16
commit b921d17aa6

View file

@ -1452,16 +1452,16 @@ 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);
case V3D_QPU_BRANCH_DEST_REGFILE:
*packed_instr |= QPU_SET_FIELD(instr->branch.raddr_a,
VC5_QPU_RADDR_A);
break;
default:
break;
}
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);
}
return true;
}