glsl: don't sort varying in separate shader mode
authorGregory Hainaut <gregory.hainaut@gmail.com>
Sun, 25 Oct 2015 14:01:37 +0000 (15:01 +0100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 1 Dec 2015 01:46:37 +0000 (12:46 +1100)
commit2ab9cd0c4dcefb3e63266cadc1e06079e67c3962
treef3d4e7961de75c798c4a9ccdbdec63a9ac5caf39
parent8117f46f496fb31339fc97a2501d5b3325a1fefb
glsl: don't sort varying in separate shader mode

This fixes an issue where the addition of the FLAT qualifier in
varying_matches::record() can break the expected varying order.

It also avoids a future issue with the relaxing of interpolation
qualifier matching constraints in GLSL 4.50.

V2: (by Timothy Arceri)
* reworked comment slightly

Signed-off-by: Gregory Hainaut <gregory.hainaut@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/link_varyings.cpp