radeonsi: fix an assertion failure for sampler descriptor loads with LLVM
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Reviewed-by: Pierre-Eric
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40589>
This commit is contained in:
Marek Olšák 2026-03-21 00:33:30 -04:00 committed by Marge Bot
parent e1a845c042
commit dee99b38c5

View file

@ -530,7 +530,7 @@ static bool lower_resource_tex(nir_builder *b, nir_tex_instr *tex,
break;
case nir_tex_src_sampler_handle:
if (has_sampler) {
sampler_handle = tex->src[i].src.ssa;
sampler_handle = nir_u2u32(b, tex->src[i].src.ssa);
} else {
nir_tex_instr_remove_src(tex, i);
i--;