projects
/
platform
/
upstream
/
glslang.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe15158
)
Fixed SPIR-V remapper not remapping OpExtInst instruction set IDs
author
Sidney Just
<justsid@widerwille.com>
Sat, 12 Jun 2021 22:30:36 +0000
(15:30 -0700)
committer
Sidney Just
<justsid@widerwille.com>
Sat, 12 Jun 2021 22:30:36 +0000
(15:30 -0700)
SPIRV/SPVRemapper.cpp
patch
|
blob
|
history
diff --git
a/SPIRV/SPVRemapper.cpp
b/SPIRV/SPVRemapper.cpp
index
56d7f43
..
56d6d5d
100644
(file)
--- a/
SPIRV/SPVRemapper.cpp
+++ b/
SPIRV/SPVRemapper.cpp
@@
-544,6
+544,9
@@
namespace spv {
// Extended instructions: currently, assume everything is an ID.
// TODO: add whatever data we need for exceptions to that
if (opCode == spv::OpExtInst) {
+
+ idFn(asId(word)); // Instruction set is an ID that also needs to be mapped
+
word += 2; // instruction set, and instruction from set
numOperands -= 2;