[Mesa-dev] [Bug 106903] radv: Fragment shader output goes to wrong attachments when render targets are sparse

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 12 19:19:42 UTC 2018


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

            Bug ID: 106903
           Summary: radv: Fragment shader output goes to wrong attachments
                    when render targets are sparse
           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 140140
  --> https://bugs.freedesktop.org/attachment.cgi?id=140140&action=edit
Patch for the 'deferred' demo

Hello,

when there's an unused color attachment in a subpass, it looks like fragment
shader outputs are not written to the correct attachments, i.e. if attachment
reference 1 is VK_ATTACHMENT_UNUSED, the fragment shader output at location 2
is written to the 3rd attachment and the output at location 3 is discarded
entirely. This causes rendering issues in Vampyr on DXVK.

The attached patch for Sasha Willems 'deferred' demo demonstrates the issue. It
works as expected on amdvlk. Mind that the affected fragment shader needs to be
recompiled manually.

Regards,
- Philip

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


More information about the mesa-dev mailing list