Re: [Mesa-dev] [PATCH v2] i965: Fix scalar VS float[] and vec2[] output arrays.

2015-11-03 Thread Jason Ekstrand
On Tue, Nov 3, 2015 at 7:32 PM, Kenneth Graunke wrote: > The scalar VS backend has never handled float[] and vec2[] outputs > correctly (my original code was broken). Outputs need to be padded > out to vec4 slots. > > In fs_visitor::nir_setup_outputs(), we tried to process each vec4 slot > by loo

[Mesa-dev] [PATCH v2] i965: Fix scalar VS float[] and vec2[] output arrays.

2015-11-03 Thread Kenneth Graunke
The scalar VS backend has never handled float[] and vec2[] outputs correctly (my original code was broken). Outputs need to be padded out to vec4 slots. In fs_visitor::nir_setup_outputs(), we tried to process each vec4 slot by looping from 0 to ALIGN(type_size_scalar(type), 4) / 4. However, this