<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 - R600 asserts in sb_shed.c:251 during Shader Backend optimization pass."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91725">91725</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>R600 asserts in sb_shed.c:251 during Shader Backend optimization pass.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86 (IA32)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>major
          </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>ikalvachev@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=117861" name="attach_117861" title="The shader causing the problem as TGSI and R600 bytecode. Created by Nine.">attachment 117861</a> <a href="attachment.cgi?id=117861&action=edit" title="The shader causing the problem as TGSI and R600 bytecode. Created by Nine.">[details]</a></span>
The shader causing the problem as TGSI and R600 bytecode. Created by Nine.

The exact error message is:
sb/sb_sched.cpp:251:unreserve: Assertion `rp[cycle][chan] == sel &&
uc[cycle][chan]' failed.

It doesn't trigger if I replay with "R600_DEBUG=nobs".
My hardware is Radeon HD5670 (Redwood).

I have attached part of the log created by "R600_DEBUG=vs,ps" containing the
TGSI code and the unoptimized R600 bytecode.

The bug is reproduced by replaying d3d9 trace of the game "The Forest". The
trace file has been uploaded to ixit ftp server. You need d3dretrace.exe (from
apitrace compiled for windows) and wine. It is preferable is wine have ixit
Nine patch and mesa-git with Nine enabled.

The bug is reproduced by both Nine state tracker and  by the OpenGL one (when
using vanilla wined3d opengl wrapper). Since the the OpenGL TGSI code is
different, I'm attaching it too.

If you need more info, feel free to ask me.</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>