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); > > > + unsigned nr_attribute_slots = 0; > > > > Can't you just do: > > > > nir_shader *nir = vp->program.Base.nir; > > unsigned nr_attribute_slots = > > _mesa_bitcount_64(nir->info.inputs_read) + > > _mesa_bitcount_64(nir->info.double_inputs_read); > > > > It seems like that should work without the need to iterate variables. > > > Right. I'll use that instead. Thank you! > > J.A. >
Cool! Have a: Reviewed-by: Kenneth Graunke <kenn...@whitecape.org>
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev