[Bug 70613] New: Repeated function call gives HUGE increases to compile time

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Oct 18 04:38:32 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=70613

          Priority: medium
            Bug ID: 70613
          Assignee: idr at freedesktop.org
           Summary: Repeated function call gives HUGE increases to compile
                    time
        QA Contact: intel-3d-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: kevin.rogovin at intel.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: 9.1
         Component: Drivers/DRI/i965
           Product: Mesa

Created attachment 87818
  --> https://bugs.freedesktop.org/attachment.cgi?id=87818&action=edit
30 second compile.

Attached are two fragment shaders which have various noise functions within
them.

fast_compile.frag.glsl takes Mesa about half a second to compile and link.
slow_compile.frag.glsl takes Mesa aboit half a MINUTE to compile and link.

The only difference between the two's source code is that the former defines a
macro GREY_SCALE_NOISE. With that macro in place, calling the noise function,
pnoise(vec4, vec4) happens only oncse. Without the macro it calls it 3 times,
with different arguments, for each of red, green and blue.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20131018/472b7184/attachment-0001.html>


More information about the intel-3d-bugs mailing list