From f8bb3ec37cb0d8431f004e872f6fa50ccdf4b28c Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Thu, 17 Jul 2025 13:54:08 -0400 Subject: [PATCH] nak/lower_tex: Don't use remap_sampler_dim() for images Subpass images should only ever show up as textures thanks to nir_lower_input_attachments(). Also, you can't do imageSize() on an input attachment anyway. Reviewed-by: Mary Guillemard Part-of: --- src/nouveau/compiler/nak_nir_lower_tex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nouveau/compiler/nak_nir_lower_tex.c b/src/nouveau/compiler/nak_nir_lower_tex.c index 41950acaba5..12e02989641 100644 --- a/src/nouveau/compiler/nak_nir_lower_tex.c +++ b/src/nouveau/compiler/nak_nir_lower_tex.c @@ -594,7 +594,7 @@ lower_image_txq(nir_builder *b, nir_intrinsic_instr *intrin, } nir_tex_instr *txq = nir_tex_instr_create(b->shader, 1); - txq->sampler_dim = remap_sampler_dim(nir_intrinsic_image_dim(intrin)); + txq->sampler_dim = nir_intrinsic_image_dim(intrin); txq->is_array = nir_intrinsic_image_array(intrin); txq->dest_type = nir_type_int32;