mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
d9c0971e50
commit
35e70bf30a
2 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue