lavapipe: Set image_array for input attachment loads

They have the layer as an array component.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36197>
This commit is contained in:
Konstantin Seurer 2025-07-18 21:42:27 +02:00 committed by Marge Bot
parent e323b01703
commit 6d3c10577d

View file

@ -69,6 +69,8 @@ try_lower_input_load(nir_intrinsic_instr *load, bool use_fragcoord_sysval)
nir_def *coord =
nir_vec4(&b, nir_channel(&b, pos, 0), nir_channel(&b, pos, 1), layer, nir_imm_int(&b, 0));
nir_intrinsic_set_image_array(load, true);
nir_src_rewrite(&load->src[1], coord);
return true;