[Bug 93840] [i965] Compiler backend uses too much stack with Alien: Isolation

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 13 13:02:39 UTC 2017


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

--- Comment #22 from Eero Tamminen <eero.t.tamminen at intel.com> ---
(In reply to Eero Tamminen from comment #21)
> 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).

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).

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


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