<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 - DRI3 Full screen corruption regression in OpenArena"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111389">111389</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>DRI3 Full screen corruption regression in OpenArena
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </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>Driver/Radeon
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>xorg-driver-ati@lists.x.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dan@reactivated.net
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xorg-team@lists.x.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>michel@daenzer.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When starting OpenArena fullscreen under GNOME, the screen becomes corrupt and
the game is unplayable (see attached photo).

This has been reproduced on:
 1. Ubuntu Eoan 19.10 nightly using OpenArena from Flathub
 2. Ubuntu Eoan 19.10 nightly using OpenArena from Ubuntu packages after
configuring it to enter fullscreen mode
 3. Endless OS 3.6.2 using OpenArena from Flathub

The same tests on machines that use i915 or amdgpu graphics do not reproduce
the problem.

Back on the radeon device, I also found the problem does not occur if you first
use xrandr to change display mode to 640x480 (so that running the game does not
require it to change the display mode). Alternatively, configure it as:
   Option "DRI" "2"
and the issue is fully avoided (even when the game changes the display mode
during launch)

This worked fine on older distro versions, so it appears to be a recent
regression and I bisected it down to:

55e513b978b2afc52b7cafc5bfcb0d1dc78d75f6 is the first bad commit
commit 55e513b978b2afc52b7cafc5bfcb0d1dc78d75f6
Author: Michel Dänzer <<a href="mailto:michel.daenzer@amd.com">michel.daenzer@amd.com</a>>
Date:   Sat Apr 29 17:05:58 2017 +0900

    Use reference counting for tracking KMS framebuffer lifetimes


Please let me know how we can help debug further.</pre>
        </div>
      </p>


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

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