Module: Mesa
Branch: main
Commit: ea37d7f81feac5af42f180c30d78474cc9c7f0e6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea37d7f81feac5af42f180c30d78474cc9c7f0e6

Author: Alyssa Rosenzweig <[email protected]>
Date:   Thu Feb 16 11:01:18 2023 -0500

agx: Use agx_emit_collect for st_tile

Instead of open coding.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21430>

---

 src/asahi/compiler/agx_compile.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c
index 386e0858e18..d1d33a7a15b 100644
--- a/src/asahi/compiler/agx_compile.c
+++ b/src/asahi/compiler/agx_compile.c
@@ -470,9 +470,7 @@ agx_emit_local_store_pixel(agx_builder *b, 
nir_intrinsic_instr *instr)
       compacted[compact_count++] = agx_extract_nir_src(b, instr->src[0], i);
    }
 
-   agx_index src0 = agx_src_index(&instr->src[0]);
-   agx_index collected = agx_temp(b->shader, src0.size);
-   agx_emit_collect_to(b, collected, compact_count, compacted);
+   agx_index collected = agx_emit_collect(b, compact_count, compacted);
 
    b->shader->did_writeout = true;
    return agx_st_tile(b, collected, agx_src_index(&instr->src[1]),

Reply via email to