projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d42f77
)
nir/spirv: Handle OpNop
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 20 Nov 2015 23:02:45 +0000
(15:02 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 20 Nov 2015 23:02:45 +0000
(15:02 -0800)
src/glsl/nir/spirv_to_nir.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/spirv_to_nir.c
b/src/glsl/nir/spirv_to_nir.c
index db023f614a8e1f6d363aa5fb5313f20e82547b59..ba49b04a54e7ffbd23ac2f328476245c0a4082bd 100644
(file)
--- 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;