nir/spirv: Handle LogicalNot
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Dec 2015 19:11:58 +0000 (11:11 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Dec 2015 21:49:56 +0000 (13:49 -0800)
src/glsl/nir/spirv_to_nir.c

index dc165252c25b3cf65ac26523f5887d7829fca95c..5c94573fd3afc3305646df621f069fc82436514d 100644 (file)
@@ -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: