nir/lower_tex: fix lowering 16bit textureGatherOffsets

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40685>
This commit is contained in:
Georg Lehmann 2026-03-30 18:07:27 +02:00 committed by Marge Bot
parent bf8862b49f
commit 027503cac2

View file

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