OSDN Git Service

Fix GLSL struct with single matrix.
authorNicolas Capens <capn@google.com>
Wed, 6 Jun 2018 17:47:19 +0000 (13:47 -0400)
committerNicolas Capens <nicolascapens@google.com>
Fri, 8 Jun 2018 14:20:37 +0000 (14:20 +0000)
commit41320521bd3f213947e118d0369c3d464b7aca7f
tree9f6cb2c863ac77fd97c6896bfe57109d85bc0ecf
parent88482c3ca96642733b3a4cc3566b7e2d1b5f8025
Fix GLSL struct with single matrix.

The parameters of the matrix constructor form an aggregate node that
was passed directly to the constructor of the structure, instead of
creating a one-element aggregate containing the matrix.

https://github.com/mc-imperial/shader-compiler-bugs/issues/74

Bug swiftshader:56

Change-Id: Iff9a2d8dc60d79a0dde28f2aad76407028486ec8
Reviewed-on: https://swiftshader-review.googlesource.com/19308
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
src/OpenGL/compiler/Intermediate.cpp
src/OpenGL/compiler/ParseHelper.cpp
src/OpenGL/compiler/glslang.y
src/OpenGL/compiler/glslang_tab.cpp
tests/unittests/unittests.cpp