nir/spirv: Add a documenting assert for OpConstantSampler

This commit is contained in:
Jason Ekstrand 2016-01-04 17:04:26 -08:00
parent 0309199802
commit f32370a536

View 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");
}