nir/spirv: Handle OpNop

This commit is contained in:
Jason Ekstrand
2015-11-20 15:02:45 -08:00
parent 1d42f773d3
commit cff74d6fb8
+5
View 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;