[Mesa-dev] [Bug 106687] radv: Fast color clears use incorrect format

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon May 28 12:59:34 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106687

            Bug ID: 106687
           Summary: radv: Fast color clears use incorrect format
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Vulkan/radeon
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: philip.rebohle at tu-dortmund.de
        QA Contact: mesa-dev at lists.freedesktop.org

Created attachment 139814
  --> https://bugs.freedesktop.org/attachment.cgi?id=139814&action=edit
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:

    https://github.com/doitsujin/dxvk/issues/289

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

    https://mega.nz/#!NfZAnTxQ!YwtksOUn5OLGxotQss5xbAFOfXddHilTDolUykqihB8

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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180528/7d8b1589/attachment.html>


More information about the mesa-dev mailing list