v3d: Drop unused vir_SAT() operation.
authorEric Anholt <eric@anholt.net>
Fri, 20 Jul 2018 19:10:08 +0000 (12:10 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 23 Jul 2018 17:21:42 +0000 (10:21 -0700)
We lower saturates in NIR.

src/broadcom/compiler/nir_to_vir.c

index 426b41e2be84cec5bf77d637fdd4652e5c5d4485..5c7acdf72ab3d7bd0762639b40d61618c517307e 100644 (file)
@@ -244,14 +244,6 @@ ntq_get_alu_src(struct v3d_compile *c, nir_alu_instr *instr,
         return r;
 };
 
-static inline struct qreg
-vir_SAT(struct v3d_compile *c, struct qreg val)
-{
-        return vir_FMAX(c,
-                        vir_FMIN(c, val, vir_uniform_f(c, 1.0)),
-                        vir_uniform_f(c, 0.0));
-}
-
 static struct qreg
 ntq_minify(struct v3d_compile *c, struct qreg size, struct qreg level)
 {