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:
64076ed
)
SPV: Fix an issue of ++/-- for dvec/dmat.
author
Rex Xu
<rex.xu@amd.com>
Fri, 29 Jul 2016 08:13:04 +0000
(16:13 +0800)
committer
Rex Xu
<rex.xu@amd.com>
Fri, 29 Jul 2016 08:13:04 +0000
(16:13 +0800)
SPIRV/GlslangToSpv.cpp
patch
|
blob
|
history
diff --git
a/SPIRV/GlslangToSpv.cpp
b/SPIRV/GlslangToSpv.cpp
index
26d2f4b
..
470ed25
100755
(executable)
--- a/
SPIRV/GlslangToSpv.cpp
+++ b/
SPIRV/GlslangToSpv.cpp
@@
-1174,6
+1174,8
@@
bool TGlslangToSpvTraverser::visitUnary(glslang::TVisit /* visit */, glslang::TI
spv::Id one = 0;
if (node->getBasicType() == glslang::EbtFloat)
one = builder.makeFloatConstant(1.0F);
+ else if (node->getBasicType() == glslang::EbtDouble)
+ one = builder.makeDoubleConstant(1.0);
else if (node->getBasicType() == glslang::EbtInt64 || node->getBasicType() == glslang::EbtUint64)
one = builder.makeInt64Constant(1);
else