From 8ae3eebba4e7cb20dae60db42d75ec3107edccfb Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 16 Aug 2023 15:36:32 -0400 Subject: [PATCH] agx: Clear image_array after lowering We lower to access to a non-array 2D image, so we need to update the image_array flag when we lower or otherwise we get an incorrect 2D Array store to a 2D image which the hardware doesn't want. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_nir_lower_texture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/asahi/compiler/agx_nir_lower_texture.c b/src/asahi/compiler/agx_nir_lower_texture.c index c71f2dafe3f..0b977d1f70d 100644 --- a/src/asahi/compiler/agx_nir_lower_texture.c +++ b/src/asahi/compiler/agx_nir_lower_texture.c @@ -866,6 +866,7 @@ lower_multisampled_store(nir_builder *b, nir_instr *instr, UNUSED void *data) nir_src_rewrite(&intr->src[1], nir_pad_vector(b, coord2d, 4)); nir_src_rewrite(&intr->src[2], nir_imm_int(b, 0)); nir_intrinsic_set_image_dim(intr, GLSL_SAMPLER_DIM_2D); + nir_intrinsic_set_image_array(intr, false); return true; }