glsl: avoid linker and user varying location to overlap
authorGregory Hainaut <gregory.hainaut@gmail.com>
Sun, 25 Oct 2015 14:01:36 +0000 (15:01 +0100)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Fri, 20 Nov 2015 11:04:02 +0000 (22:04 +1100)
commit9108a785a0fc6bb47ca577d2e2bdcf3728fead43
treef359400ad04d22286d6d3d10ad64196b9eff47a4
parent3afb253e9ba5ea44cf7be34cc2c3e0e358d169d0
glsl: avoid linker and user varying location to overlap

Current behavior on the interface matching:

layout (location = 0) out0; // Assigned to VARYING_SLOT_VAR0 by user
out1; // Assigned to VARYING_SLOT_VAR0 by the linker

New behavior on the interface matching:

layout (location = 0) out0; // Assigned to VARYING_SLOT_VAR0 by user
out1; // Assigned to VARYING_SLOT_VAR1 by the linker

v4:
* Fix variable name in assert

Signed-off-by: Gregory Hainaut <gregory.hainaut@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/glsl/link_varyings.cpp