[Mesa-dev] [PATCH] glsl: fix varying slot allocation for blocks and structs with explicit locations

2016-01-06 Thread Timothy Arceri
Previously each member was being counted as using a single slot, count_attribute_slots() fixes the count for array and struct members. Also don't assign a negitive to the unsigned expl_location variable. --- Fixes these new piglit tests: http://patchwork.freedesktop.org/patch/69531/

Re: [Mesa-dev] [PATCH] glsl: fix varying slot allocation for blocks and structs with explicit locations

2016-01-06 Thread Ilia Mirkin
On Wed, Jan 6, 2016 at 4:32 AM, Timothy Arceri wrote: > Previously each member was being counted as using a single slot, > count_attribute_slots() fixes the count for array and struct members. > > Also don't assign a negitive to the unsigned expl_location variable. >

Re: [Mesa-dev] [PATCH] glsl: fix varying slot allocation for blocks and structs with explicit locations

2016-01-06 Thread Ilia Mirkin
On Wed, Jan 6, 2016 at 4:32 PM, Timothy Arceri wrote: > On Wed, 2016-01-06 at 09:46 -0500, Ilia Mirkin wrote: >> On Wed, Jan 6, 2016 at 4:32 AM, Timothy Arceri >> wrote: >> > Previously each member was being counted as using a single

Re: [Mesa-dev] [PATCH] glsl: fix varying slot allocation for blocks and structs with explicit locations

2016-01-06 Thread Timothy Arceri
On Wed, 2016-01-06 at 09:46 -0500, Ilia Mirkin wrote: > On Wed, Jan 6, 2016 at 4:32 AM, Timothy Arceri > wrote: > > Previously each member was being counted as using a single slot, > > count_attribute_slots() fixes the count for array and struct > > members. > > > >