[Mesa-dev] [PATCH] glsl2: performance regression with import_prototypes

Aras Pranckevicius aras at unity3d.com
Wed Aug 4 07:51:22 PDT 2010


Attached patch - or alternatively, this github commit:
fixes GLSL2 performance problems after many shaders are processed.

When constructing builtin functions, they are put into global memory pool
(once), and their prototypes cloned into current shader. However, the cloned
prototype variables were still using the global memory pool, which then
makes talloc_parent's O(N) complexity really visible after a while.

Aras Pranckevičius
work: http://unity3d.com
home: http://aras-p.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100804/868478c5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-import_prototypes-do-not-put-all-cloned-params-into-.patch
Type: application/octet-stream
Size: 852 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100804/868478c5/attachment.obj>

More information about the mesa-dev mailing list