glsl: fix counting of vertex shader output slots used by explicit vars
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 27 Aug 2017 04:09:31 +0000 (00:09 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 28 Aug 2017 13:07:40 +0000 (09:07 -0400)
commiteefeff09a784eb139cbf682b98926c0eaa00eb21
tree931456cd117ce6d4fecd0b06646ae11f1e64d112
parent5dd072380ad9fc20e93248ac8a268fe826339791
glsl: fix counting of vertex shader output slots used by explicit vars

The argument to count_attribute_slots should only be set to true for
vertex inputs, not for all vertex shader varyings.

Fixes KHR-GL45.enhanced_layouts.varying_locations

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Cc: mesa-stable@lists.freedesktop.org
src/compiler/glsl/link_varyings.cpp