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 <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24847>
This commit is contained in:
Alyssa Rosenzweig 2023-08-16 15:36:32 -04:00 committed by Marge Bot
parent c8ea02a883
commit 8ae3eebba4

View file

@ -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;
}