diff options
author | Ian Romanick <[email protected]> | 2016-09-06 23:17:51 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-09-27 12:06:46 -0700 |
commit | 7f64041cee3101c673be6d7bffbb03dab69ccca4 (patch) | |
tree | 90e5b546426b2640a09a65679db89500b5ab1548 /src/compiler/glsl/ir_builder.cpp | |
parent | 5f7f7d582b1d6d3696506250743fd3f6be3277b8 (diff) |
glsl: Add bit_xor builder
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_builder.cpp')
-rw-r--r-- | src/compiler/glsl/ir_builder.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir_builder.cpp b/src/compiler/glsl/ir_builder.cpp index d68647f4234..f430100a085 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); |