nir/validate: allow bias on nir_texop_lod

AGX seems to support it, and it's very convenient for implementing sampler LOD
bias together with a clamped LOD query.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26861>
This commit is contained in:
Alyssa Rosenzweig 2023-12-10 17:14:39 -04:00 committed by Marge Bot
parent 407fd1e1d7
commit d32daa3fb2

View file

@ -786,7 +786,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_tg4 ||
instr->op == nir_texop_lod);
break;
case nir_tex_src_lod: