glsl/linker: attempt to match anonymous structures at link
authorDave Airlie <airlied@redhat.com>
Tue, 17 May 2016 00:31:29 +0000 (10:31 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 18 May 2016 22:16:50 +0000 (08:16 +1000)
commit61b67892522c89800541ed4f266ab88e5f1db620
tree3c6eb2949aed6549a7da6a73d7a7f4141e654325
parent4dfa89e33c810bac02e2678814621d2f3868d58b
glsl/linker: attempt to match anonymous structures at link

This is my attempt at fixing at least one of the UE4 bugs with GL4.3.

If we are doing intrastage matching and hit anonymous structs, then
we should do a record comparison instead of using the names.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95005
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/compiler/glsl/link_varyings.cpp