glsl: Check the subroutine associated functions names
authorVadym Shovkoplias <vadim.shovkoplias@gmail.com>
Tue, 9 Oct 2018 16:09:10 +0000 (19:09 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 16 Oct 2018 05:15:21 +0000 (08:15 +0300)
commitad558408ff1ea5ad0743e68b9487472d7b020034
tree20414fe1252b44c1ae650b2d755a71dc7b786940
parentd2ea3d4a76770e6c605490a991a4136469da6d35
glsl: Check the subroutine associated functions names

Adding compile time check for subroutine functions with
the same names. Similar check for intrastage linking was already
landed in commit 5f0567a4f60.

From Section 6.1.2 (Subroutines) of the GLSL 4.00 specification

    "A program will fail to compile or link if any shader
     or stage contains two or more functions with the same
     name if the name is associated with a subroutine type."

Fixes:
    * no-overloads.vert

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108109
Signed-off-by: Vadym Shovkoplias <vadym.shovkoplias@globallogic.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/compiler/glsl/ast_to_hir.cpp