Since we are returning a fixed latency for these check for them
earlier and return early if they match.
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22675>
after_inst->type != V3D_QPU_INSTR_TYPE_ALU)
return latency;
+ if (v3d_qpu_instr_is_sfu(before_inst))
+ return 2;
+
if (before_inst->alu.add.op != V3D_QPU_A_NOP &&
before_inst->alu.add.magic_write) {
latency = MAX2(latency,
after_inst));
}
- if (v3d_qpu_instr_is_sfu(before_inst))
- return 2;
-
return latency;
}