<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - vs-temp-array-mat3-index-col-rd test fails with SB"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=71944">71944</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>vs-temp-array-mat3-index-col-rd test fails with SB
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>g02maran@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>Drivers/Gallium/r600
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=89688" name="attach_89688" title="Shader dump when test fails">attachment 89688</a> <a href="attachment.cgi?id=89688&action=edit" title="Shader dump when test fails">[details]</a></span>
Shader dump when test fails

I did a little investigation on why the piglit test:
vs-temp-array-mat3-index-col-rd fails with SB.

If I disable SB with R600_DEBUG=nosb the test passes.

I did a bisect and found this commit:
<a href="http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ae9cc71f097af5ae1f83f77f75de2198849faca">http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ae9cc71f097af5ae1f83f77f75de2198849faca</a>

If I revert that commit the test passes with SB, but I'm pretty sure that
commit only exposed a bug that weren't hit before.

I looked at the shader dumps and the only thing I found that looked a little
strange was this.

before: 7ae9cc71f097af5ae1f83f77f75de2198849faca
z: SETE               T0.z,  R[2+AR].y, KC0[2].y
w: SETE               T1.w,  R[2+AR].z, KC0[2].z
x: SETE               T1.x,  R[2+AR].x, KC0[2].x

after: 7ae9cc71f097af5ae1f83f77f75de2198849faca
w: SETE_DX10          T0.w,  R[2+AR].z, KC0[2].z
z: SETE_DX10          T0.z,  R[2+AR].y, KC0[2].y
x: SETE_DX10          T1.x,  R[0+AR].x, KC0[2].x

Is R[0+AR].x correct in the last line or should it be R[2+AR].x?

Tested with mesa master: 751e8697f2099a0ceaba09e0d8775e4636f209b1</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>