diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-12-23 11:11:58 -0800 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-12-23 13:49:56 -0800 |
commit | 5644b1ceced8bb2a31880482e039c0179e555080 (patch) | |
tree | 7869ddf628136503a9e6d2594b6ee5f9b087d16f /src | |
parent | 6219a69589a78efd8a40832d5f71ffe42eda9f67 (diff) | |
download | external_mesa3d-5644b1ceced8bb2a31880482e039c0179e555080.zip external_mesa3d-5644b1ceced8bb2a31880482e039c0179e555080.tar.gz external_mesa3d-5644b1ceced8bb2a31880482e039c0179e555080.tar.bz2 |
nir/spirv: Handle LogicalNot
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/nir/spirv_to_nir.c | 4 |
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 dc16525..5c94573 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: |