glsl: stop considering unnamed and named structures equal
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 14 May 2017 18:03:10 +0000 (20:03 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 13 Jun 2017 07:35:40 +0000 (09:35 +0200)
commit835b1435f22dda28c6d9309eef13010f4db54381
treefacf533faa594b13ddca544a82b9f3e15bd791e3
parent77ea2ada5ae4b72c43598f3faa518526cb36b822
glsl: stop considering unnamed and named structures equal

Previously, if an unnamed and a named struct contained the same fields,
they were considered the same type during linking of globals.

The discussion around commit e018ea81bf58 ("glsl: Structures must have
same name to be considered same type.") doesn't seem to have considered
this thoroughly, and I see no evidence that an unnamed struct should
ever be considered to be the same type as a named struct.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl_types.cpp