nir: Set cursor in lower_sampler_lod_bias
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Reviewed-by: Alyssa Anne Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37494>
This commit is contained in:
Aitor Camacho 2025-09-19 17:07:13 +02:00 committed by Marge Bot
parent 9029c8b1e3
commit 06dbd4c33c

View file

@ -1484,6 +1484,7 @@ nir_lower_lod_zero_width(nir_builder *b, nir_tex_instr *tex)
static void
lower_sampler_lod_bias(nir_builder *b, nir_tex_instr *tex)
{
b->cursor = nir_before_instr(&tex->instr);
nir_def *bias = nir_build_texture_query(b, tex, nir_texop_lod_bias, 1,
nir_type_float16, false, false);