Mesa (master): glsl: Add nequal() to ir_builder.

Matt Turner mattst88 at kemper.freedesktop.org
Thu Aug 15 00:14:22 UTC 2013


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

Author: Matt Turner <mattst88 at gmail.com>
Date:   Sun Aug  4 14:09:35 2013 -0700

glsl: Add nequal() to ir_builder.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>

---

 src/glsl/ir_builder.cpp |    6 ++++++
 src/glsl/ir_builder.h   |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/glsl/ir_builder.cpp b/src/glsl/ir_builder.cpp
index 06b6a8c..b47d131 100644
--- a/src/glsl/ir_builder.cpp
+++ b/src/glsl/ir_builder.cpp
@@ -232,6 +232,12 @@ equal(operand a, operand b)
 }
 
 ir_expression*
+nequal(operand a, operand b)
+{
+   return expr(ir_binop_nequal, a, b);
+}
+
+ir_expression*
 less(operand a, operand b)
 {
    return expr(ir_binop_less, a, b);
diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h
index 49c2a73..267b673 100644
--- a/src/glsl/ir_builder.h
+++ b/src/glsl/ir_builder.h
@@ -136,6 +136,7 @@ ir_expression *saturate(operand a);
 ir_expression *abs(operand a);
 
 ir_expression *equal(operand a, operand b);
+ir_expression *nequal(operand a, operand b);
 ir_expression *less(operand a, operand b);
 ir_expression *greater(operand a, operand b);
 ir_expression *lequal(operand a, operand b);




More information about the mesa-commit mailing list