diff options
author | Matt Turner <[email protected]> | 2013-08-04 14:09:09 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-08-14 17:15:06 -0700 |
commit | 16be6298c0d7aa1a06903e6768bc74358d339fba (patch) | |
tree | af42b336aeedc1d7e2f4d6aa977482e18bd1bc0f /src/glsl/ir_builder.cpp | |
parent | 6bfb1a8344d58aa47a28cff87f508088233e70f6 (diff) |
glsl: Add abs() to ir_builder.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/glsl/ir_builder.cpp')
-rw-r--r-- | src/glsl/ir_builder.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.cpp b/src/glsl/ir_builder.cpp index 5e1da17a62f..06b6a8c87fb 100644 --- a/src/glsl/ir_builder.cpp +++ b/src/glsl/ir_builder.cpp @@ -219,6 +219,12 @@ saturate(operand a) new(mem_ctx) ir_constant(0.0f)); } +ir_expression * +abs(operand a) +{ + return expr(ir_unop_abs, a); +} + ir_expression* equal(operand a, operand b) { |