Re: [Mesa-dev] [PATCH 08/15] i965/vec4: use attribute slots to calculate URB read length

2016-05-10 Thread Kenneth Graunke
On Tuesday, May 10, 2016 6:24:39 PM PDT Juan A. Suarez Romero wrote: > On Mon, 2016-05-09 at 23:37 -0700, Kenneth Graunke wrote: > > void *log_data, > > > const unsigned *assembly = NULL; > > > > > > unsigned nr_attributes = _mesa_bitcount_64(prog_data- > > >inputs_read); > > > +

Re: [Mesa-dev] [PATCH 08/15] i965/vec4: use attribute slots to calculate URB read length

2016-05-10 Thread Juan A. Suarez Romero
On Mon, 2016-05-09 at 23:37 -0700, Kenneth Graunke wrote: > void *log_data, > > const unsigned *assembly = NULL; > >   > > unsigned nr_attributes = _mesa_bitcount_64(prog_data- > >inputs_read); > > +   unsigned nr_attribute_slots = 0; > > Can't you just do: > >     nir_shader *nir =

Re: [Mesa-dev] [PATCH 08/15] i965/vec4: use attribute slots to calculate URB read length

2016-05-10 Thread Kenneth Graunke
On Thursday, April 28, 2016 1:40:38 PM PDT Antia Puentes wrote: > From: "Juan A. Suarez Romero" > > Do not use total attributes because a dvec3/dvec4 attribute requires two > slots. So rather use total attribute slots. > --- > src/mesa/drivers/dri/i965/brw_vec4.cpp | 21

[Mesa-dev] [PATCH 08/15] i965/vec4: use attribute slots to calculate URB read length

2016-04-28 Thread Antia Puentes
From: "Juan A. Suarez Romero" Do not use total attributes because a dvec3/dvec4 attribute requires two slots. So rather use total attribute slots. --- src/mesa/drivers/dri/i965/brw_vec4.cpp | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff