nir/spirv: Add a documenting assert for OpConstantSampler
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jan 2016 01:04:26 +0000 (17:04 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jan 2016 01:37:10 +0000 (17:37 -0800)
src/glsl/nir/spirv/spirv_to_nir.c

index 53228e4781fcb84d00b4898db8d749422ecc5216..9a5cedd5d95e5fe62363fd0cd471edda58b1ed64 100644 (file)
@@ -836,6 +836,10 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
       val->constant = vtn_null_constant(b, val->const_type);
       break;
 
+   case SpvOpConstantSampler:
+      assert(!"OpConstantSampler requires Kernel Capability");
+      break;
+
    default:
       unreachable("Unhandled opcode");
    }