glsl: fix component overlap validation for doubles
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 10 Jun 2016 05:12:34 +0000 (15:12 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Sun, 12 Jun 2016 11:56:32 +0000 (21:56 +1000)
commit30df78236c14ca9470fd591a0978625490c010b2
treeccb1814c58859305dc9c8b23530b8f84774ebd0a
parentad3def919e8bdb4f01db0f06d54961175a1910c4
glsl: fix component overlap validation for doubles

This change makes sure to remove arrays when checking if type
is a double.

The check for the end of the first slot of a multi-slot double
is also fixed by bumping the check to 4 rather than 3.
Previously we were we not reserving the last component.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/link_varyings.cpp