mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 14:20:11 +01:00
nir: Set cursor in lower_sampler_lod_bias
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:
parent
9029c8b1e3
commit
06dbd4c33c
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue