Re: [Mesa-dev] [PATCH] i965: fix component packing of array with single slot type

2017-10-10 Thread Timothy Arceri
On 11/10/17 11:30, Kenneth Graunke wrote: On Tuesday, October 10, 2017 4:57:08 PM PDT Timothy Arceri wrote: From: Kenneth Graunke ARB_enhanced_layouts enables us to pack array varyings with non-arrays types e.g. layout(location = 0) in vec3 a[6]; layout(location = 0, component = 3) in float b

Re: [Mesa-dev] [PATCH] i965: fix component packing of array with single slot type

2017-10-10 Thread Kenneth Graunke
On Tuesday, October 10, 2017 4:57:08 PM PDT Timothy Arceri wrote: > From: Kenneth Graunke > > ARB_enhanced_layouts enables us to pack array varyings with > non-arrays types e.g. > > layout(location = 0) in vec3 a[6]; > layout(location = 0, component = 3) in float b; > > With this change we calc

[Mesa-dev] [PATCH] i965: fix component packing of array with single slot type

2017-10-10 Thread Timothy Arceri
From: Kenneth Graunke ARB_enhanced_layouts enables us to pack array varyings with non-arrays types e.g. layout(location = 0) in vec3 a[6]; layout(location = 0, component = 3) in float b; With this change we calculate the size of output registers in a separate pass, before allocating them. Revi