mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 14:50:10 +01:00
aco: remove useless check for nir_tex_src_bias
I think only nir_texop_txb can have a bias operand anyways. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4989>
This commit is contained in:
parent
0f46a3191f
commit
47a769143b
1 changed files with 2 additions and 4 deletions
|
|
@ -8194,10 +8194,8 @@ void visit_tex(isel_context *ctx, nir_tex_instr *instr)
|
|||
break;
|
||||
}
|
||||
case nir_tex_src_bias:
|
||||
if (instr->op == nir_texop_txb) {
|
||||
bias = get_ssa_temp(ctx, instr->src[i].src.ssa);
|
||||
has_bias = true;
|
||||
}
|
||||
bias = get_ssa_temp(ctx, instr->src[i].src.ssa);
|
||||
has_bias = true;
|
||||
break;
|
||||
case nir_tex_src_lod: {
|
||||
nir_const_value *val = nir_src_as_const_value(instr->src[i].src);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue