OSDN Git Service

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)
committerAndres Gomez <agomez@igalia.com>
Wed, 6 Sep 2017 15:05:09 +0000 (18:05 +0300)
commit70f7f60f0cfe37fffb458aae09d3854eba0c5a27
tree1a9fe99f1ed3a3a0810a98c1b25137ab61cd631c
parentc62dc8e61e721ca7fcc3c01b74229cf2efa580f9
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
(cherry picked from commit eefeff09a784eb139cbf682b98926c0eaa00eb21)
src/compiler/glsl/link_varyings.cpp