<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [i965] Compiler backend uses too much stack with Alien: Isolation"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93840#c22">Comment # 22</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [i965] Compiler backend uses too much stack with Alien: Isolation"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93840">bug 93840</a>
              from <span class="vcard"><a class="email" href="mailto:eero.t.tamminen@intel.com" title="Eero Tamminen <eero.t.tamminen@intel.com>"> <span class="fn">Eero Tamminen</span></a>
</span></b>
        <pre>(In reply to Eero Tamminen from <a href="show_bug.cgi?id=93840#c21">comment #21</a>)
<span class="quote">> So, either this game needs some LD_PRELOAD that maps
> pthread_attr_setstacksize() function to a no-op, or Mesa compiler needs to
> be changed to use heap for anything that might be even a bit larger (which
> can make it a bit slower).</span >

Short term workaround in Mesa could be checking current thread's stack size
before compilation and fixing the size, if it's set too low by the application.

As to longer term solution... Just changing compiler to do larger allocs from
heap instead of using stack, will still assume certain amount of stack being
free, and it's not easy to track how much each compiler commit changes that.
-> Better would be doing compilation in separate thread (i.e. where application
won't mess with its stack size).</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>