glsl: add varying resources for arrays of complex types
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Tue, 31 Oct 2017 17:39:17 +0000 (17:39 +0000)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 8 Nov 2017 09:12:07 +0000 (10:12 +0100)
commitd5a641106baae2122cc3f09b4a755077d902ee88
treeaa78e2c01cff3adbbc8a7636d0d57fb94a844a61
parent36be8c2fcf94f5d800aed6c3d39ef23b226fd0d5
glsl: add varying resources for arrays of complex types

This patch is mostly a patch done by Ilia Mirkin.

It fixes KHR-GL45.enhanced_layouts.varying_structure_locations.

v2: fix locations for TCS/TES/GS inputs and outputs (Ilia)

CC: Ilia Mirkin <imirkin@alum.mit.edu>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103098
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
src/compiler/glsl/linker.cpp