<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Assertion failed: size_log2 <= ANV_MAX_STATE_SIZE_LOG2 While compiling large compute shader"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100092">100092</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed: size_log2 <= ANV_MAX_STATE_SIZE_LOG2 While compiling large compute shader
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>13.0
          </td>
        </tr>

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

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

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/Vulkan/intel
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>freiling@google.com
          </td>
        </tr>

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

        <tr>
          <th>CC</th>
          <td>jason@jlekstrand.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=130103" name="attach_130103" title="Offending SPIR-V">attachment 130103</a> <a href="attachment.cgi?id=130103&action=edit" title="Offending SPIR-V">[details]</a></span>
Offending SPIR-V

Trying to compile a large vulkan compute shader (15Kb of SPIR-V) on Gen9 blows
up to ~150Kb binary, causing an assert in anv_allocator.c:637 because it is
larger than the maximum state size. 

The offending SPIR-V is attached and I will try to attach the GLSL that
generated it once the bug is created (I seem to only be able to attach on file
at creation time)

We are compiling the GLSL to SPIR-V using GLSLang, and the best modulator we
can find for the problem is to make "depths" on line 31 a shared array like
"roi" on line 28. This reduces the final binary size from 150 Kb to 7 Kb and
vastly reduces compile time.

Let us know if you have any questions.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>