linker: fix varying linking if SSO program has only gs and fs
authorTapani Pälli <tapani.palli@intel.com>
Tue, 17 Mar 2015 11:58:57 +0000 (13:58 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 16 Apr 2015 04:30:12 +0000 (07:30 +0300)
commit993b9b6adbd2c97ccb58b7cbc46382d1ae87b9ab
treef2023c10d2a2d9ea2da398caf3d09867bc55b552
parent17d69862a9232e2bcdfa032c5a65c27557dd9275
linker: fix varying linking if SSO program has only gs and fs

Previously linker did not take in to account case where one would
have only gs and fs (with SSO), patch adds the case by refactoring
code around assign_varying_locations. This makes sure locations for
gs get populated correctly.

This was found with some of the SSO subtests of Martin's upcoming
GetProgramInterfaceiv Piglit test which passes with the patch, no
Piglit regressions.

v2: code cleanups (Martin Peres)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
src/glsl/linker.cpp