<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Repeated function call gives HUGE increases to compile time"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=70613">70613</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Repeated function call gives HUGE increases to compile time
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kevin.rogovin@intel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>9.1
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/i965
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=87818" name="attach_87818" title="30 second compile.">attachment 87818</a> <a href="attachment.cgi?id=87818&action=edit" title="30 second compile.">[details]</a></span>
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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>