<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 - R600g+sb: optimizer apparently stuck in an endless loop"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103142">103142</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>R600g+sb: optimizer apparently stuck in an endless loop
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>git
          </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/Gallium/r600
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>gw.fossdev@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=134738" name="attach_134738" title="TGSI, byte code and logging output">attachment 134738</a> <a href="attachment.cgi?id=134738&action=edit" title="TGSI, byte code and logging output">[details]</a></span>
TGSI, byte code and logging output

With sb enabled some shaders apparently trigger an endless loops in the sb
optimizer. 

The attached TGSI and log of a shader triggering this behaviour comes from the
Unreal Editor version 4.17.1,  

The log was created with 

  #define PSC_DEBUG 1 

in src/gallium/drivers/r600/sb_sched.cpp

The problem is probably related to the "FIXME rework this loop" on line 1808 in
the same file, and I also have the impression that it has something to do with
MULADD when the sources are a mix of CONST and IMM.

I'd try to fix it myself, but right now I don't really have a clue how to
approach this bug.

best, 
Gert</pre>
        </div>
      </p>


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

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