summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir_builder.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2016-09-06 23:17:51 -0700
committerIan Romanick <ian.d.romanick@intel.com>2016-09-27 12:06:46 -0700
commit7f64041cee3101c673be6d7bffbb03dab69ccca4 (patch)
tree90e5b546426b2640a09a65679db89500b5ab1548 /src/compiler/glsl/ir_builder.cpp
parent5f7f7d582b1d6d3696506250743fd3f6be3277b8 (diff)
downloadexternal_mesa3d-7f64041cee3101c673be6d7bffbb03dab69ccca4.zip
external_mesa3d-7f64041cee3101c673be6d7bffbb03dab69ccca4.tar.gz
external_mesa3d-7f64041cee3101c673be6d7bffbb03dab69ccca4.tar.bz2
glsl: Add bit_xor builder
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/compiler/glsl/ir_builder.cpp')
-rw-r--r--src/compiler/glsl/ir_builder.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir_builder.cpp b/src/compiler/glsl/ir_builder.cpp
index d68647f..f430100 100644
--- a/src/compiler/glsl/ir_builder.cpp
+++ b/src/compiler/glsl/ir_builder.cpp
@@ -417,6 +417,12 @@ bit_or(operand a, operand b)
}
ir_expression*
+bit_xor(operand a, operand b)
+{
+ return expr(ir_binop_bit_xor, a, b);
+}
+
+ir_expression*
lshift(operand a, operand b)
{
return expr(ir_binop_lshift, a, b);