Fix lvalue check in SPIR-V generation
authorLoopDawg <sk_opengl@khasekhemwy.net>
Wed, 6 Sep 2017 20:59:06 +0000 (14:59 -0600)
committerLoopDawg <sk_opengl@khasekhemwy.net>
Wed, 6 Sep 2017 21:04:52 +0000 (15:04 -0600)
commit76117921b9b1ff6e49eab26ed38f6fbda687c7a7
tree8403a0735e20ff77b1cf02b31ade45a9fddbbd4e
parent3a21c880500eac21cdf79bef5b80f970a55ac6af
Fix lvalue check in SPIR-V generation

There were several locations in TGlslangToSpvTraverser::handleUserFunctionCall testing for
whether a fn argument should be in the lvalue or rvalue array.  They must get the same
result for indexing sanity, but had slightly different logic.

They're now forced into the same test.
SPIRV/GlslangToSpv.cpp
Test/baseResults/hlsl.opaque-type-bug.frag.out [new file with mode: 0644]
Test/hlsl.opaque-type-bug.frag [new file with mode: 0644]
gtests/Hlsl.FromFile.cpp