nir/spirv: Handle OpNop
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 20 Nov 2015 23:02:45 +0000 (15:02 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 20 Nov 2015 23:02:45 +0000 (15:02 -0800)
src/glsl/nir/spirv_to_nir.c

index db023f614a8e1f6d363aa5fb5313f20e82547b59..ba49b04a54e7ffbd23ac2f328476245c0a4082bd 100644 (file)
@@ -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;