From 4d79f6ca76b8acbf7bdf2553829b48491feb4c77 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 1 May 2022 16:24:18 -0400 Subject: [PATCH] agx: Use extract helper for tex internally Allows better optimization. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index 76aa37c4fb1..a38d9b22227 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -923,7 +923,7 @@ agx_emit_tex(agx_builder *b, nir_tex_instr *instr) agx_index channels[4] = {}; for (unsigned i = 0; i < nr; ++i) - channels[i] = agx_p_extract(b, index, i); + channels[i] = agx_emit_extract(b, index, i); agx_index layer = agx_fadd(b, channels[nr - 1], agx_immediate_f(0.5f));