[Mesa-dev] GLSL linker issue when counting varying vars

Brian Paul brianp at vmware.com
Fri Jun 22 15:39:23 PDT 2012


The GLSL linker code in assign_varying_locations() counts up the 
number of varying variables and checks the count against the 
ctx->Const.MaxVarying limit.

I know we've had problems with this in the past but I think there's 
another issue.

In the case of fragment shaders we're also counting variables like 
gl_FrontFacing and gl_FragCoord against the limit.  IMO, we shouldn't 
count those vars there since they're not really interpolated values 
like colors or texcoords or generic varyings.

Comments?

-Brian


More information about the mesa-dev mailing list