aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2020-05-11 15:23:52 +0200
committerMarge Bot <[email protected]>2020-05-14 10:05:44 +0000
commit47a769143be8f81e01a70467d51142d36597847f (patch)
tree920e379b3a5eb69babb581bb167463d3adeaff8c /src/amd
parent0f46a3191ff31a89d6969a67f8b50dbedf085dca (diff)
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 <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4989>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/compiler/aco_instruction_selection.cpp6
1 files changed, 2 insertions, 4 deletions
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);