Re: [Mesa-dev] [PATCH] glsl: fix arrays of anonymous structs matching.

2016-05-22 Thread Ilia Mirkin
Won't this try to match struct { vec4 foo; } bar[6]; with struct { vec4 foo; } bar[6][6]; Or is that taken care of elsewhere? Also, it might be nice to not do output->type->without_array() twice. On Sun, May 22, 2016 at 3:30 PM, Dave Airlie wrote: > From: Dave Airlie > > "glsl/linker: attemp

[Mesa-dev] [PATCH] glsl: fix arrays of anonymous structs matching.

2016-05-22 Thread Dave Airlie
From: Dave Airlie "glsl/linker: attempt to match anonymous structures at link" introduced a fix for matching anon structs, however it didn't handle arrays of anon structs. This adds the appropriate without_array() calls, and fixes some crashes in the CTS tessellation tests. Signed-off-by: Dave