mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
agx: Remove logical_end later
So we can use after_block_logical in the wait insertion pass. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20446>
This commit is contained in:
parent
73ac73308b
commit
a01680b979
2 changed files with 5 additions and 1 deletions
|
|
@ -727,6 +727,11 @@ agx_pack_binary(agx_context *ctx, struct util_dynarray *emission)
|
|||
struct util_dynarray fixups;
|
||||
util_dynarray_init(&fixups, ctx);
|
||||
|
||||
agx_foreach_instr_global_safe(ctx, I) {
|
||||
if (I->op == AGX_OPCODE_LOGICAL_END)
|
||||
agx_remove_instruction(I);
|
||||
}
|
||||
|
||||
agx_foreach_block(ctx, block) {
|
||||
/* Relative to the start of the binary, the block begins at the current
|
||||
* number of bytes emitted */
|
||||
|
|
|
|||
|
|
@ -596,7 +596,6 @@ agx_ra(agx_context *ctx)
|
|||
switch (I->op) {
|
||||
/* Pseudoinstructions for RA must be removed now */
|
||||
case AGX_OPCODE_PHI:
|
||||
case AGX_OPCODE_LOGICAL_END:
|
||||
case AGX_OPCODE_PRELOAD:
|
||||
agx_remove_instruction(I);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue