agx: lower export even later

so we can do reg cache opt as late as possible without losing this information.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36399>
This commit is contained in:
Alyssa Rosenzweig 2025-07-31 11:27:30 -04:00
parent d9c0971e50
commit 35e70bf30a
2 changed files with 6 additions and 6 deletions

View file

@ -124,12 +124,6 @@ lower(agx_builder *b, agx_instr *I)
swap(b, I->src[0], I->src[1]);
return (void *)true;
case AGX_OPCODE_EXPORT:
/* We already lowered exports during RA, we just need to remove them late
* after inserting waits.
*/
return (void *)true;
default:
return NULL;
}

View file

@ -1174,6 +1174,12 @@ agx_pack_instr(struct util_dynarray *emission, struct util_dynarray *fixups,
break;
}
case AGX_OPCODE_EXPORT:
/* Zero-byte pseudo-op. This remains until late for the benefit of
* register cache optimizations.
*/
return;
default:
agx_pack_alu(emission, I);
return;