[Mesa-dev] [PATCH 08/15] i965/vec4: use attribute slots to calculate URB read length
Juan A. Suarez Romero
jasuarez at igalia.com
Tue May 10 16:24:39 UTC 2016
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160510/3f333c60/attachment.sig>
More information about the mesa-dev
mailing list