<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 - vkd3d test failures related to ordered/unordered comparisons in test_shader_instructions()"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109249">109249</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>vkd3d test failures related to ordered/unordered comparisons in test_shader_instructions()
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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/Vulkan/Common
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>joseph.kucia@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>airlied@freedesktop.org, chadversary@chromium.org, daniel@fooishbar.org, jason@jlekstrand.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Radv and Anv are affected. Nir optimizations appear to flip ordered/unordered
comparisons. Removing ~inot optimization from
<a href="https://gitlab.freedesktop.org/mesa/mesa/blob/add5a2ec92f4b3f7ac8353e5986dc04186a7b6da/src/compiler/nir/nir_opt_algebraic.py#L160">https://gitlab.freedesktop.org/mesa/mesa/blob/add5a2ec92f4b3f7ac8353e5986dc04186a7b6da/src/compiler/nir/nir_opt_algebraic.py#L160</a>
fixes the vkd3d test failures.

See <a href="https://lists.freedesktop.org/archives/mesa-dev/2018-December/210780.html">https://lists.freedesktop.org/archives/mesa-dev/2018-December/210780.html</a>
for a related discussion.

The problem produces the following test failures on Anv:

d3d12:8258:31:if_return: Test failed: Got {0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00}, expected {1.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00} at (0, 0).
d3d12:8258:41:if_return: Test failed: Got {1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 0.00000000e+00}, expected {1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00} at (0, 0).
d3d12:8258:48:if_return: Test failed: Got {0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00}, expected {1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00} at (0, 0).


and the following test failures on Radv:

d3d12:8258:31:if_return: Test failed: Got {0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00}, expected {1.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00} at (0, 0).
d3d12:8258:34:if_return: Test failed: Got {1.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00}, expected {1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 0.00000000e+00} at (0, 0).
d3d12:8258:37:if_return: Test failed: Got {1.00000000e+00, 1.00000000e+00,
0.00000000e+00, 0.00000000e+00}, expected {1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 0.00000000e+00} at (0, 0).
d3d12:8258:41:if_return: Test failed: Got {1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 0.00000000e+00}, expected {1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00} at (0, 0).
d3d12:8258:48:if_return: Test failed: Got {0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00}, expected {1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00} at (0, 0).</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>