From 0bd23366b1cf8f8e335942a78c54c6c151e874e6 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 22 Sep 2024 16:33:50 -0400 Subject: [PATCH] agx: use padding helper avoids data type splat Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index 5a1b8e1fc1c..188ce0e0d77 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -842,9 +842,7 @@ agx_emit_block_image_store(agx_builder *b, nir_intrinsic_instr *instr) /* 32-bit source physically, 16-bit in NIR, top half ignored but needed * logically to ensure alignment. */ - offset = agx_vec2(b, offset, agx_undef(AGX_SIZE_16)); - offset.channels_m1--; - offset.size = AGX_SIZE_32; + offset = agx_pad_to_32(b, offset); /* Modified coordinate descriptor */ if (!explicit) { @@ -2200,9 +2198,7 @@ agx_emit_tex(agx_builder *b, nir_tex_instr *instr) min = agx_src_index(&instr->src[min_idx].src); /* Undef extend to 32-bit since our IR is iffy */ - min = agx_vec2(b, min, agx_undef(AGX_SIZE_16)); - min.channels_m1--; - min.size = AGX_SIZE_32; + min = agx_pad_to_32(b, min); } /* We explicitly don't cache about the split cache for this */