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 53228e4..9a5cedd 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");
    }