diff options
author | Matt Turner <[email protected]> | 2013-08-04 14:09:35 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-08-14 17:15:06 -0700 |
commit | 1cf76c72da37166dd75009ceea212bfa18626b2f (patch) | |
tree | 4d81539600c0b452d5a96623c99cf9a8dc2e30b8 /src/glsl | |
parent | 16be6298c0d7aa1a06903e6768bc74358d339fba (diff) |
glsl: Add nequal() to ir_builder.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/ir_builder.cpp | 6 | ||||
-rw-r--r-- | 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 06b6a8c87fb..b47d131cfe1 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 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); |