mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 17:10:11 +01:00
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:
parent
407fd1e1d7
commit
d32daa3fb2
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue