mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 20:58:04 +02:00
agx: fix export instructions in the IR
so we can see thru them properly. 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
17f2a3af7a
commit
c6111cc43c
1 changed files with 5 additions and 0 deletions
|
|
@ -1316,6 +1316,11 @@ lower_exports(agx_context *ctx)
|
|||
.src = I->src[0],
|
||||
};
|
||||
|
||||
/* The export itself is now trivial, reflect that for correct last-use
|
||||
* tracking later.
|
||||
*/
|
||||
I->src[0] = agx_register_like(I->imm, I->src[0]);
|
||||
|
||||
/* We cannot use fewer registers than we export */
|
||||
ctx->max_reg =
|
||||
MAX2(ctx->max_reg, I->imm + agx_size_align_16(I->src[0].size));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue