glsl/linker: Fix type checks for location aliasing
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 25 Oct 2017 07:14:22 +0000 (09:14 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 26 Oct 2017 06:40:14 +0000 (08:40 +0200)
commit13652e7516a3ef75c5ae75ffa5c7f048629bf772
tree67ca7c8ffa6410cc0b6f28010e757f5856b569d1
parent7276ccf8edb0a1ba610cc07edf73b1f0cecaa1f6
glsl/linker: Fix type checks for location aliasing

From the OpenGL 4.6 spec, section 4.4.1 Input Layout Qualifiers, Page 68,
(Location aliasing):

   "Further, when location aliasing, the aliases sharing the location
    must have the same underlying numerical type  (floating-point or
    integer)."

The current implementation is too strict, since it checks that the
the base types are an exact match instead.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/compiler/glsl/link_varyings.cpp