<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 - radv: Fast color clears use incorrect format"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106687">106687</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>radv: Fast color clears use incorrect format
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </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/radeon
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>philip.rebohle@tu-dortmund.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=139814" name="attach_139814" title="Possible fix">attachment 139814</a> <a href="attachment.cgi?id=139814&action=edit" title="Possible fix">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=106687&attachment=139814'>[review]</a>
Possible fix

Hello,

When clearing render targets, fast color clears use the image format rather
than the format of the image view, which is incorrect if the formats differ.
This leads to a rendering issue in ELEX with DXVK:

    <a href="https://github.com/doitsujin/dxvk/issues/289">https://github.com/doitsujin/dxvk/issues/289</a>

Here's a Renderdoc capture that shows the issue (recorded on Polaris):

    <a href="https://mega.nz/#!NfZAnTxQ!YwtksOUn5OLGxotQss5xbAFOfXddHilTDolUykqihB8">https://mega.nz/#!NfZAnTxQ!YwtksOUn5OLGxotQss5xbAFOfXddHilTDolUykqihB8</a>

At EID 10305, the game clears a render target view with
VK_FORMAT_R8G8B8A8_UNORM where the image itself has the format
VK_FORMAT_R8G8B8A8_UINT. As a result, the alpha value of the cleared image is
incorrect (129 instead of 1).

This issue does not occur when setting RADV_DEBUG=nofastclears.

The attached patch fixes the issue for this game, although I'm not sure if it
is entirely correct.</pre>
        </div>
      </p>


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

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