Re: [Mesa-dev] [PATCH 3/7] nir: fix output offset compute for dvec3/4

2018-11-08 Thread Jason Ekstrand
On Thu, Nov 8, 2018 at 7:22 AM Alejandro Piñeiro wrote: > The offset compute was working fine for the case of attrib_slots=1, > and updating the offset for the following varying. > > But in the case of attrib_slots=2 (so dvec3/4), we are basically > splitting the comp_slots needed in two outputs.

[Mesa-dev] [PATCH 3/7] nir: fix output offset compute for dvec3/4

2018-11-08 Thread Alejandro Piñeiro
The offset compute was working fine for the case of attrib_slots=1, and updating the offset for the following varying. But in the case of attrib_slots=2 (so dvec3/4), we are basically splitting the comp_slots needed in two outputs. In that case we can't add to the offset the full size of the type.