broadcom/compiler: fix end of tmu sequence detection
TMUWT always terminates a TMU sequence. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9619>
This commit is contained in:
committed by
Marge Bot
parent
7bdd569d7e
commit
3db322f305
@@ -46,18 +46,22 @@ static bool
|
||||
is_end_of_tmu_sequence(const struct v3d_device_info *devinfo,
|
||||
struct qinst *inst, struct qblock *block)
|
||||
{
|
||||
if (!inst->qpu.sig.ldtmu &&
|
||||
!(inst->qpu.type == V3D_QPU_INSTR_TYPE_ALU &&
|
||||
inst->qpu.alu.add.op != V3D_QPU_A_TMUWT)) {
|
||||
return false;
|
||||
if (inst->qpu.type == V3D_QPU_INSTR_TYPE_ALU &&
|
||||
inst->qpu.alu.add.op == V3D_QPU_A_TMUWT) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!inst->qpu.sig.ldtmu)
|
||||
return false;
|
||||
|
||||
list_for_each_entry_from(struct qinst, scan_inst, inst->link.next,
|
||||
&block->instructions, link) {
|
||||
if (scan_inst->qpu.sig.ldtmu ||
|
||||
(inst->qpu.type == V3D_QPU_INSTR_TYPE_ALU &&
|
||||
inst->qpu.alu.add.op == V3D_QPU_A_TMUWT)) {
|
||||
if (scan_inst->qpu.sig.ldtmu)
|
||||
return false;
|
||||
|
||||
if (inst->qpu.type == V3D_QPU_INSTR_TYPE_ALU &&
|
||||
inst->qpu.alu.add.op == V3D_QPU_A_TMUWT) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (qinst_writes_tmu(devinfo, scan_inst))
|
||||
|
||||
Reference in New Issue
Block a user