mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
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:
parent
e323b01703
commit
6d3c10577d
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue