From: Jason Ekstrand Date: Fri, 20 Nov 2015 23:02:45 +0000 (-0800) Subject: nir/spirv: Handle OpNop X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cff74d6fb876c0ca4a6c5c5041c02770241beeb2;p=mesa.git nir/spirv: Handle OpNop --- diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c index db023f614a8..ba49b04a54e 100644 --- a/src/glsl/nir/spirv_to_nir.c +++ b/src/glsl/nir/spirv_to_nir.c @@ -141,6 +141,11 @@ vtn_foreach_instruction(struct vtn_builder *b, const uint32_t *start, unsigned count = w[0] >> SpvWordCountShift; assert(count >= 1 && w + count <= end); + if (opcode == SpvOpNop) { + w++; + continue; + } + if (!handler(b, opcode, w, count)) return w;