From: Matt Turner Date: Sun, 4 Aug 2013 21:09:35 +0000 (-0700) Subject: glsl: Add nequal() to ir_builder. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1cf76c72da37166dd75009ceea212bfa18626b2f;p=mesa.git glsl: Add nequal() to ir_builder. Reviewed-by: Kenneth Graunke Reviewed-by: Chad Versace --- diff --git a/src/glsl/ir_builder.cpp b/src/glsl/ir_builder.cpp index 06b6a8c87fb..b47d131cfe1 100644 --- a/src/glsl/ir_builder.cpp +++ b/src/glsl/ir_builder.cpp @@ -231,6 +231,12 @@ equal(operand a, operand b) return expr(ir_binop_equal, a, b); } +ir_expression* +nequal(operand a, operand b) +{ + return expr(ir_binop_nequal, a, b); +} + ir_expression* less(operand a, operand b) { diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h index 49c2a7382da..267b673d95e 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);