[Mesa-dev] [PATCH v2 11/15] glsl/linker: dvec3/dvec4 may consume twice input vertex attributes

Juan A. Suarez Romero jasuarez at igalia.com
Fri May 13 08:37:11 UTC 2016


On Thu, 2016-05-12 at 15:42 -0700, Kenneth Graunke wrote:
> I'm a bit confused - it looks like we already do this check slightly
> earlier in the function.  Why do we need to do it again (or later?)?


In the earlier case, we are using explicit location. So we already know
how many locations we are consuming.


In the latest case, we do not have explicit location, so we need first
to calculate the locations used, and at the end check if we have enough
of them.


	J.A.



More information about the mesa-dev mailing list