From 027503cac2af5a8e6bde4fd31f9a6ca73652b37b Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Mon, 30 Mar 2026 18:07:27 +0200 Subject: [PATCH] nir/lower_tex: fix lowering 16bit textureGatherOffsets Part-of: --- src/compiler/nir/nir_lower_tex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_lower_tex.c b/src/compiler/nir/nir_lower_tex.c index bb2fd9a2ef2..f0592ed8634 100644 --- a/src/compiler/nir/nir_lower_tex.c +++ b/src/compiler/nir/nir_lower_tex.c @@ -1211,7 +1211,7 @@ lower_tg4_offsets(nir_builder *b, nir_tex_instr *tex) tex_copy->src[tex_copy->num_srcs - 1] = src; nir_def_init(&tex_copy->instr, &tex_copy->def, - nir_tex_instr_dest_size(tex), 32); + nir_tex_instr_dest_size(tex), tex->def.bit_size); nir_builder_instr_insert(b, &tex_copy->instr);