From f32370a5362107a1bd6b1392724b2fb0f39a6e8a Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 4 Jan 2016 17:04:26 -0800 Subject: [PATCH] nir/spirv: Add a documenting assert for OpConstantSampler --- src/glsl/nir/spirv/spirv_to_nir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/glsl/nir/spirv/spirv_to_nir.c b/src/glsl/nir/spirv/spirv_to_nir.c index 53228e4781f..9a5cedd5d95 100644 --- a/src/glsl/nir/spirv/spirv_to_nir.c +++ b/src/glsl/nir/spirv/spirv_to_nir.c @@ -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"); } -- 2.30.2