SPV: Partially address #2293: correct "const in" precision matching.
authorJohn Kessenich <cepheus@frii.com>
Fri, 26 Jun 2020 14:37:06 +0000 (08:37 -0600)
committerJohn Kessenich <cepheus@frii.com>
Fri, 26 Jun 2020 14:37:06 +0000 (08:37 -0600)
commit4df10335e6b5667fc12a5ec76bfb2cae4e04e03d
treead8c7385c5721be3775e196020e8f2ad6cb97a09
parentfbb9dc2cf1afbc1ca301c66bd3ec7e745dfed0e4
SPV: Partially address #2293: correct "const in" precision matching.

Track whether formal parameters declare reduced precision and match
that with arguments, and if they differ, make a copy to promote the
precision.
SPIRV/GlslangToSpv.cpp
SPIRV/SpvBuilder.cpp
SPIRV/spvIR.h
Test/baseResults/spv.precisionArgs.frag.out [new file with mode: 0755]
Test/spv.precisionArgs.frag [new file with mode: 0644]
gtests/Spv.FromFile.cpp