From 888492ecd3c2fdf60e649df58dcb5a975ffa72c4 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 14 Feb 2023 22:36:44 -0500 Subject: [PATCH] asahi: Vectorize background colour load No point to scalarizing this, the background can handle the vector load fine since bfa7ec0aa0f ("agx: Don't scalarize preambles in NIR"). Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/agx_meta.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/asahi/lib/agx_meta.c b/src/asahi/lib/agx_meta.c index 7d842e7a8ca..a0dcdc2421f 100644 --- a/src/asahi/lib/agx_meta.c +++ b/src/asahi/lib/agx_meta.c @@ -61,14 +61,7 @@ build_background_op(nir_builder *b, enum agx_meta_op op, unsigned rt, } else { assert(op == AGX_META_OP_CLEAR); - nir_ssa_def *comp[] = { - nir_load_preamble(b, 1, 32, (rt * 8) + 0), - nir_load_preamble(b, 1, 32, (rt * 8) + 2), - nir_load_preamble(b, 1, 32, (rt * 8) + 4), - nir_load_preamble(b, 1, 32, (rt * 8) + 6), - }; - - return nir_vec(b, comp, nr); + return nir_load_preamble(b, nr, 32, rt * 8); } }