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:
7163127
)
Add comment that was missed in previous commit.
author
John Kessenich
<cepheus@frii.com>
Tue, 13 Oct 2015 16:55:08 +0000
(10:55 -0600)
committer
John Kessenich
<cepheus@frii.com>
Tue, 13 Oct 2015 16:55:08 +0000
(10:55 -0600)
SPIRV/SpvBuilder.cpp
patch
|
blob
|
history
diff --git
a/SPIRV/SpvBuilder.cpp
b/SPIRV/SpvBuilder.cpp
index
12fd003
..
dba9c4c
100755
(executable)
--- a/
SPIRV/SpvBuilder.cpp
+++ b/
SPIRV/SpvBuilder.cpp
@@
-500,6
+500,9
@@
Id Builder::findScalarConstant(Op typeClass, Id typeId, unsigned v1, unsigned v2
return 0;
}
+// Return true if consuming 'opcode' means consuming a constant.
+// "constant" here means after final transform to executable code,
+// the value consumed will be a constant, so includes specialization.
bool Builder::isConstantOpCode(Op opcode) const
{
switch (opcode) {