From: Jason Ekstrand Date: Wed, 23 Dec 2015 19:11:58 +0000 (-0800) Subject: nir/spirv: Handle LogicalNot X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5644b1ceced8bb2a31880482e039c0179e555080;p=mesa.git nir/spirv: Handle LogicalNot --- diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c index dc165252c25..5c94573fd3a 100644 --- a/src/glsl/nir/spirv_to_nir.c +++ b/src/glsl/nir/spirv_to_nir.c @@ -2570,6 +2570,7 @@ vtn_handle_alu(struct vtn_builder *b, SpvOp opcode, case SpvOpLogicalEqual: op = nir_op_ieq; break; case SpvOpLogicalNotEqual: op = nir_op_ine; break; case SpvOpLogicalAnd: op = nir_op_iand; break; + case SpvOpLogicalNot: op = nir_op_inot; break; case SpvOpBitwiseOr: op = nir_op_ior; break; case SpvOpBitwiseXor: op = nir_op_ixor; break; case SpvOpBitwiseAnd: op = nir_op_iand; break; @@ -3562,10 +3563,11 @@ vtn_handle_body_instruction(struct vtn_builder *b, SpvOp opcode, case SpvOpShiftRightLogical: case SpvOpShiftRightArithmetic: case SpvOpShiftLeftLogical: - case SpvOpLogicalOr: case SpvOpLogicalEqual: case SpvOpLogicalNotEqual: + case SpvOpLogicalOr: case SpvOpLogicalAnd: + case SpvOpLogicalNot: case SpvOpBitwiseOr: case SpvOpBitwiseXor: case SpvOpBitwiseAnd: