On Thu, 22 Sep 2011 12:41:21 -0700, Kenneth Graunke <kenn...@whitecape.org> 
wrote:
> Very simple shaders don't actually use GLSL built-ins.  For example:
> - gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
> - gl_FragColor = vec4(0.0);
> Both of the shaders used by _mesa_meta_glsl_Clear() also qualify.
> 
> By waiting to initialize the built-ins until the first time we need to
> look for a signature, we can avoid the overhead entirely in these cases.
> 
> Makes piglit run roughly 18% faster (255 vs. 312 seconds).

Reviewed-by: Eric Anholt <e...@anholt.net>

Attachment: pgpqL2OecLCFn.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to