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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user