OSDN Git Service

Ternary selection cleanup
authorAlexis Hetu <sugoi@google.com>
Tue, 7 Jul 2015 21:13:30 +0000 (17:13 -0400)
committerAlexis Hétu <sugoi@google.com>
Wed, 8 Jul 2015 14:27:55 +0000 (14:27 +0000)
commiteee212e77d07ef0ad4dd9396c62dc318435ae3d3
tree450cf8fead6b6e675aca9b7be37aba18cd532d5f
parente573229d481ea1238540ccbf886826530f1c9a57
Ternary selection cleanup

Moved the ternary selection code to TParseContext
where checks were added to make sure arrays and
structs can't use it.

Change-Id: If3c007820870276cdf540005e095d89d54949bc4
Reviewed-on: https://swiftshader-review.googlesource.com/3669
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/OpenGL/compiler/ParseHelper.cpp
src/OpenGL/compiler/ParseHelper.h
src/OpenGL/compiler/glslang.y
src/OpenGL/compiler/glslang_tab.cpp