Commit 18894a5e authored by Emma Anholt's avatar Emma Anholt
Browse files

v3d: Fix detection of the last ldtmu before a new TMU op.

We were looking at the start instruction, instead of scanning through the
list of following instructions to find any more ldtmus.
parent 575caab8
......@@ -36,11 +36,11 @@
static bool
is_last_ldtmu(struct qinst *inst, struct qblock *block)
list_for_each_entry_from(struct qinst, scan_inst, inst,
list_for_each_entry_from(struct qinst, scan_inst, inst->,
&block->instructions, link) {
if (inst->qpu.sig.ldtmu)
if (scan_inst->qpu.sig.ldtmu)
return false;
if (v3d_qpu_writes_tmu(&inst->qpu))
if (v3d_qpu_writes_tmu(&scan_inst->qpu))
return true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment