From: Samuel Pitoiset Date: Mon, 11 May 2020 13:23:52 +0000 (+0200) Subject: aco: remove useless check for nir_tex_src_bias X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47a769143be8f81e01a70467d51142d36597847f;p=mesa.git 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 Reviewed-by: Daniel Schürmann Part-of: --- diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index fd018622a4b..60a4a7e0fb3 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -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);