From: Ian Romanick Date: Wed, 7 Sep 2016 06:17:51 +0000 (-0700) Subject: glsl: Add bit_xor builder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f64041cee3101c673be6d7bffbb03dab69ccca4;p=mesa.git glsl: Add bit_xor builder Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- 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 @@ -416,6 +416,12 @@ bit_or(operand a, operand b) return expr(ir_binop_bit_or, a, b); } +ir_expression* +bit_xor(operand a, operand b) +{ + return expr(ir_binop_bit_xor, a, b); +} + ir_expression* lshift(operand a, operand b) { diff --git a/src/compiler/glsl/ir_builder.h b/src/compiler/glsl/ir_builder.h index b483ebf6269..231fbfcdb3e 100644 --- a/src/compiler/glsl/ir_builder.h +++ b/src/compiler/glsl/ir_builder.h @@ -168,6 +168,7 @@ ir_expression *logic_or(operand a, operand b); ir_expression *bit_not(operand a); ir_expression *bit_or(operand a, operand b); ir_expression *bit_and(operand a, operand b); +ir_expression *bit_xor(operand a, operand b); ir_expression *lshift(operand a, operand b); ir_expression *rshift(operand a, operand b);