<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 26, 2016, at 14:37, Marek Olšák <<a href="mailto:maraeo@gmail.com" class="">maraeo@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">On Sat, Jul 23, 2016 at 4:07 PM, Nicolai Hähnle <</span><a href="mailto:nhaehnle@gmail.com" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">nhaehnle@gmail.com</a><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">> wrote:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">On 22.07.2016 12:08, Michel Dänzer wrote:<br class=""><blockquote type="cite" class=""><br class="">On 21.07.2016 18:17, Matt Arsenault wrote:<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class="">On Jul 21, 2016, at 01:03, Michel Dänzer <<a href="mailto:michel@daenzer.net" class="">michel@daenzer.net</a><br class=""><<a href="mailto:michel@daenzer.net" class="">mailto:michel@daenzer.net</a>>> wrote:<br class=""><br class="">On 21.07.2016 00:04, Michel Dänzer wrote:<br class=""><blockquote type="cite" class=""><br class="">On 15.07.2016 05:15, Marek =?UNKNOWN?B?T2zFocOhaw==?= wrote:<br class=""><blockquote type="cite" class=""><br class="">Module: Mesa<br class="">Branch: master<br class="">Commit: f84e9d749fbb6da73a60fb70e6725db773c9b8f8<br class="">URL:<br class=""><br class=""><a href="http://cgit.freedesktop.org/mesa/mesa/commit/?id=f84e9d749fbb6da73a60fb70e6725db773c9b8f8" class="">http://cgit.freedesktop.org/mesa/mesa/commit/?id=f84e9d749fbb6da73a60fb70e6725db773c9b8f8</a><br class=""><br class="">Author: Marek Olšák <marek.olsak@amd.com <mailto:marek.olsak@amd.com>><br class="">Date: Thu Jul 14 22:07:46 2016 +0200<br class=""><br class="">Revert "radeon/llvm: Use alloca instructions for larger arrays"<br class=""><br class="">This reverts commit 513fccdfb68e6a71180e21827f071617c93fd09b.<br class=""><br class="">Bioshock Infinite hangs with that.<br class=""></blockquote><br class=""><br class="">Unfortunately, this change caused the piglit test<br class="">shaders@glsl-fs-vec4-indexing-temp-dst-in-loop (and possibly others) to<br class="">hang my Kaveri. Any ideas for how we can get out of this conundrum?<br class=""></blockquote><br class=""><br class="">The hang was introduced by LLVM SVN r275934 ("AMDGPU: Expand register<br class="">indexing pseudos in custom inserter"). The good/bad (without/with<br class="">r275934) shader dumps and the GALLIUM_DDEBUG=800 dump corresponding to<br class="">the hang are attached.<br class=""><br class=""><br class="">BTW, even with Marek's change above reverted, I still see some piglit<br class="">regressions compared to last week, but I'm not sure if those are all<br class="">related to the same LLVM change.<br class=""><br class=""><br class="">--<br class="">Earthling Michel Dänzer |<br class=""> <a href="http://www.amd.com" class="">http://www.amd.com</a> <<a href="http://www.amd.com/" class="">http://www.amd.com/</a>><br class="">Libre software enthusiast | Mesa and X developer<br class=""><br class=""><glsl-fs-vec4-indexing-temp-dst-in-loop.bad><glsl-fs-vec4-indexing-temp-dst-in-loop.good><shader_runner_3339_00000000.txt><br class=""></blockquote><br class=""><br class="">This fixes the verifier error in it: <a href="https://reviews.llvm.org/D22616" class="">https://reviews.llvm.org/D22616</a><br class=""></blockquote><br class=""><br class="">This seems to fix the hang, thanks!<br class=""><br class=""><br class=""><blockquote type="cite" class="">This fixes another issue which may be<br class="">related: <a href="https://reviews.llvm.org/D22556" class="">https://reviews.llvm.org/D22556</a><br class=""></blockquote><br class=""><br class="">Even with that applied as well, there are still piglit regressions<br class="">compared to early last week, see the attached dumps (look for "LLVM<br class="">triggered Diagnostic Handler:").<br class=""></blockquote><br class=""><br class="">Looks like the "rewrite undef" part of the Two Address Instruction Pass also<br class="">needs to be adjusted -- I've attached a bugpoint-reduced test case.<br class=""><br class="">Also, the hang that motivated the original revert in Mesa should be fixed<br class="">with <a href="https://reviews.llvm.org/D22673" class="">https://reviews.llvm.org/D22673</a> (and the related<br class=""><a href="https://reviews.llvm.org/D22675" class="">https://reviews.llvm.org/D22675</a> is also needed for correctness, though<br class="">probably not for fixing the hang).<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">FYI, I've reverted the revert.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Marek</span></div></blockquote></div><br class=""><div class=""><br class=""></div><div class="">It might be nice if this could be an option, since this was probably the main stressor of the register indexing code</div><div class=""><br class=""></div><div class="">-Matt</div><div class=""><br class=""></div></body></html>