<p dir="ltr"><br>
On Jul 7, 2016 7:47 PM, wrote:<br>
><br>
><br>
> On Jul 7, 2016 9:59 AM, "Kenneth Graunke" <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>> wrote:<br>
> ><br>
> > On Thursday, July 7, 2016 11:58:43 AM PDT Timothy Arceri wrote:<br>
> > > This will be used to store the total number of components used at this location<br>
> > > when packing via ARB_enhanced_layouts.<br>
> > > ---<br>
> > > src/compiler/glsl/glsl_to_nir.cpp | 1 +<br>
> > > src/compiler/glsl/ir.h | 5 +++<br>
> > > src/compiler/glsl/link_varyings.cpp | 74 ++++++++++++++++++++++++++++++++++++-<br>
> > > src/compiler/glsl/linker.cpp | 2 +<br>
> > > src/compiler/glsl/linker.h | 4 ++<br>
> > > src/compiler/nir/nir.h | 5 +++<br>
> > > 6 files changed, 89 insertions(+), 2 deletions(-)<br>
> ><br>
> > I still hate this field. I'm going to try and come up with an alternate<br>
> > solution. I'll keep you posted.<br>
><br>
> On a first brush, me too.</p>
<p dir="ltr">I still haven't finished reading but here's a maybe useful (don't count on it; I'm working on half a brain right now) suggestion: It seems rather easy to declare an array uint8_t components[MAX_LOCATION] and do a real quick walk of the inputs to populate it. Then we can just use that when we set up interpolation.<br>
</p>