summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-12-23 11:11:58 -0800
committerJason Ekstrand <[email protected]>2015-12-23 13:49:56 -0800
commit5644b1ceced8bb2a31880482e039c0179e555080 (patch)
tree7869ddf628136503a9e6d2594b6ee5f9b087d16f
parent6219a69589a78efd8a40832d5f71ffe42eda9f67 (diff)
nir/spirv: Handle LogicalNot
-rw-r--r--src/glsl/nir/spirv_to_nir.c4
1 files changed, 3 insertions, 1 deletions
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: