http://bugs.freedesktop.org/show_bug.cgi?id=24553
Summary: shader compilation times explode when using more ()
pairs
Product: Mesa
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=30451)
--> (http://bugs.freedesktop.org/attachment.cgi?id=30451)
perl script that compiles some shaders and measures compilation time
When a shader program contains many (()) pairs, compiling (not running) the
shader becomes incredibly slow on MESA, for no apparent reason. The behaviour
can
be observed on at least MESA 7.4 and 7.6 (Debian packages).
Attached is an example program that measures the time different shaders take to
compile. X and Y stand for gl_TexCoord[0].x/y ... Output on my machine:
X+Y 0.0861s
(X)+(Y) 0.0981s
((X)+Y) 0.1578s
((X+((Y)))) 0.5819s
(((X)+((Y)))) 0.9528s
I ran this in software rendering mode (tested with LIBGL_ALWAYS_SOFTWARE=1 and
with libgl1-mesa-swx11). I don't know about DRI modules because I have no
machine
available that have MESA drivers supporting shaders (just machines using free
radeon drivers, which don't support shaders).
I am however able to say what happens on a Vista machine. The same program
produces compile times around 0.0004s there, for all textures. I also
successfully tested ((sin((X))*((cos(((Y)/((0.5)))))+0.2))/2.) there, which
does
not seem to terminate in finite time with MESA.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev