Re: [Mesa-dev] [PATCH] glsl: handle implicit sized arrays in ssbo

2016-05-25 Thread Samuel Iglesias Gonsálvez
On Wed, 2016-05-25 at 17:39 +1000, Dave Airlie wrote: > From: Dave Airlie > > The current code disallows unsized arrays except at the end of > an SSBO but it is a bit overzealous in doing so. > > struct a { > int b[]; > int f[4]; > }; > > is valid as long as b is implicitly sized wi

[Mesa-dev] [PATCH] glsl: handle implicit sized arrays in ssbo

2016-05-25 Thread Dave Airlie
From: Dave Airlie The current code disallows unsized arrays except at the end of an SSBO but it is a bit overzealous in doing so. struct a { int b[]; int f[4]; }; is valid as long as b is implicitly sized within the shader, i.e. it is accessed only by integer indices. I've subm