<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: Fragment shader output goes to wrong attachments when render targets are sparse"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106903">106903</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>radv: Fragment shader output goes to wrong attachments when render targets are sparse
          </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=140140" name="attach_140140" title="Patch for the 'deferred' demo">attachment 140140</a> <a href="attachment.cgi?id=140140&action=edit" title="Patch for the 'deferred' demo">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=106903&attachment=140140'>[review]</a>
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</pre>
        </div>
      </p>


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

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