<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 - Rendering errors when running dolphin-emu with Vulkan backend, radv (Super Smash Bros. Melee)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103852">103852</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Rendering errors when running dolphin-emu with Vulkan backend, radv (Super Smash Bros. Melee)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>17.2
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (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>benclapp55@gmail.com
          </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=135676" name="attach_135676" title="text file containing output from glxinfo and vulkaninfo">attachment 135676</a> <a href="attachment.cgi?id=135676&action=edit" title="text file containing output from glxinfo and vulkaninfo">[details]</a></span>
text file containing output from glxinfo and vulkaninfo

The version of dolphin-emu used for testing was version 5.0-5874 (this commit:
<a href="https://github.com/dolphin-emu/dolphin/commit/01794126ade973a125161ca0ea9904197bccedc3">https://github.com/dolphin-emu/dolphin/commit/01794126ade973a125161ca0ea9904197bccedc3</a>
)

OS used is Debian 10 Buster (the current testing branch of debian).
I've attached the output of glxinfo and vulkaninfo, from which you can see I'm
currently on Mesa 17.2.5.
The GPU used is a RX 580.

When playing Super Smash Bros. Melee (NTSC, version 1.02), a number of minor
rendering issues/errors can be observed when using the Vulkan backend:
* The game's title screen does not render correctly.
* The background does not render correctly for some stages (Fountain of Dreams,
Final Destination, etc...)
* The background for the trophy gallery does not render correctly
* The background for the small screen showing fighters clapping in the results
screen seems to renders the wrong color (if playing as P1 against a CPU, player
1 should render red, not light-blue)
* Turning on cropping (Options -> Graphics Settings -> Advanced -> Misc ->
Crop) results in a black screen.

None of the aforementioned bugs occur when using the OpenGL backend, or when
using the OpenGL or Vulkan backends using NVIDIA's closed-source drivers on a
different computer w/GTX 960, so I suspect these are bugs in radv.

Below is a video I recorded showing the rendering errors and steps to reproduce
the above issues:
<a href="https://youtu.be/mOhB-17b0rg">https://youtu.be/mOhB-17b0rg</a>

For comparison, here is the game running on the OpenGL backend, which does not
have these rendering issues:
<a href="https://youtu.be/owA8TOa6LcQ">https://youtu.be/owA8TOa6LcQ</a>

As an aside, you may notice a disproportionate number of dropped frames
compared to the FPS indicator in dolphin-emu at certain points in the videos I
recorded.
I highly suspect this to be due to the following bug in GNOME3's Mutter
compositor, and not related to mesa/radv (it occurs even when not recording):
<a href="https://bugzilla.gnome.org/show_bug.cgi?id=745032">https://bugzilla.gnome.org/show_bug.cgi?id=745032</a></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>