OSDN Git Service

Completing the "length()" intrinsic function implementation
authorAlexis Hetu <sugoi@google.com>
Mon, 6 Jul 2015 15:38:53 +0000 (11:38 -0400)
committerAlexis Hétu <sugoi@google.com>
Wed, 8 Jul 2015 19:45:40 +0000 (19:45 +0000)
commit950cb449744bc5d4e3d8ad8432e4549f5e29863c
treef062f81e3f382d3bc1cc077652a6250f02e9c9e1
parent1aa40a8d01f52744327c91d8f8ed9cf2c3d10695
Completing the "length()" intrinsic function implementation

The implementation of the length() function was already added
to TParseContext::addFunctionCallOrMethod() in a previous cl,
but it was still unused because addFunctionCallOrMethod() was
always called with the 3rd argument as nullptr. This cl adds
the missing code required to get the length function working.

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