Module: Mesa
Branch: master
Commit: a1beb333d86a4114262e3613e0ed5da73f743715
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1beb333d86a4114262e3613e0ed5da73f743715

Author: Eric Anholt <[email protected]>
Date:   Fri Jul 20 12:10:08 2018 -0700

v3d: Drop unused vir_SAT() operation.

We lower saturates in NIR.

---

 src/broadcom/compiler/nir_to_vir.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/broadcom/compiler/nir_to_vir.c 
b/src/broadcom/compiler/nir_to_vir.c
index 426b41e2be..5c7acdf72a 100644
--- a/src/broadcom/compiler/nir_to_vir.c
+++ b/src/broadcom/compiler/nir_to_vir.c
@@ -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)
 {

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to