mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
nir/spirv: Add a documenting assert for OpConstantSampler
This commit is contained in:
parent
0309199802
commit
f32370a536
1 changed files with 4 additions and 0 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue