nir: Allow bias for nir_texop_sparse_residency_intel

Fixes validation errors in tests like:
dEQP-VK.glsl.texture_functions.textureoffset.clamp_to_edge.sparse_isampler2d_bias_fragment

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41535>
This commit is contained in:
Kenneth Graunke 2026-05-08 14:39:38 -07:00 committed by Marge Bot
parent e201d4fa77
commit 9f56e4679e

View file

@ -1030,7 +1030,8 @@ validate_tex_instr(nir_tex_instr *instr, validate_state *state)
case nir_tex_src_bias:
validate_assert(state, instr->op == nir_texop_txb ||
instr->op == nir_texop_tg4 ||
instr->op == nir_texop_lod);
instr->op == nir_texop_lod ||
instr->op == nir_texop_sparse_residency_intel);
break;
case nir_tex_src_lod: