aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost
diff options
context:
space:
mode:
Diffstat (limited to 'src/panfrost')
-rw-r--r--src/panfrost/bifrost/bifrost_compile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c
index 8068825b826..bbc3398602c 100644
--- a/src/panfrost/bifrost/bifrost_compile.c
+++ b/src/panfrost/bifrost/bifrost_compile.c
@@ -231,6 +231,7 @@ bi_class_for_nir_alu(nir_op op)
switch (op) {
case nir_op_fadd: return BI_ADD;
case nir_op_fmul: return BI_FMA;
+ case nir_op_fsat:
case nir_op_mov: return BI_MOV;
default: unreachable("Unknown ALU op");
}
@@ -302,6 +303,9 @@ emit_alu(bi_context *ctx, nir_alu_instr *instr)
case nir_op_fmul:
alu.src[2] = BIR_INDEX_ZERO; /* FMA */
break;
+ case nir_op_fsat:
+ alu.outmod = BIFROST_SAT; /* MOV */
+ break;
default:
break;
}