Bug 111389

Summary: DRI3 Full screen corruption regression in OpenArena
Product: xorg Reporter: Daniel Drake <dan>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Photo of screen corruption
none
glxinfo output
none
xrandr output before launching OpenArena
none
dmesg output after launching OpenArena with the corruption on-screen
none
Xorg.0.log captured after launching OpenArena with the corruption on-screen none

Description Daniel Drake 2019-08-13 05:42:46 UTC
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 <michel.daenzer@amd.com>
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.
Comment 1 Daniel Drake 2019-08-13 05:44:07 UTC
Created attachment 145043 [details]
Photo of screen corruption
Comment 2 Michel Dänzer 2019-08-13 09:59:53 UTC
Please attach the corresponding Xorg log file.

(In reply to Daniel Drake from comment #0)
> This worked fine on older distro versions, so it appears to be a recent
> regression and I bisected it down to:

That change is over 2 years old, not exactly "recent". :)

Does it still happen with xf86-video-ati 19.0.1 or current upstream Git master?


P.S. Removing myself from CC, two copies of each notification from the mailing lists is plenty.
Comment 3 Michel Dänzer 2019-08-13 10:00:55 UTC
Please attach the output of glxinfo as well.
Comment 4 Daniel Drake 2019-08-13 10:03:15 UTC
Yes it still happens with git master and the 19.0.1 release.
I'll post the glxinfo output tomorrow. Thanks for the quick response.
Comment 5 Michel Dänzer 2019-08-13 10:08:31 UTC
(In reply to Daniel Drake from comment #0)
> This worked fine on older distro versions, [...]

How much older? The commit you bisected to would have been included as of Ubuntu 17.10.
Comment 6 Daniel Drake 2019-08-13 10:12:28 UTC
Endless-3.5.x (and also Debian Buster which was the base for that) has xf86-video-ati-7.8.0 and it works fine there.
Comment 7 Daniel Drake 2019-08-13 10:13:20 UTC
Sorry, I meant Debian Stretch
Comment 8 Daniel Drake 2019-08-14 03:44:08 UTC
Created attachment 145054 [details]
glxinfo output
Comment 9 Michel Dänzer 2019-08-14 12:11:05 UTC
Don't forget to attach the Xorg log file as well, and the output of dmesg (captured after reproducing the problem) and xrandr (captured before reproducing the problem) for good measure.
Comment 10 Daniel Drake 2019-08-15 05:29:00 UTC
Created attachment 145066 [details]
xrandr output before launching OpenArena
Comment 11 Daniel Drake 2019-08-15 05:29:24 UTC
Created attachment 145067 [details]
dmesg output after launching OpenArena with the corruption on-screen
Comment 12 Daniel Drake 2019-08-15 05:29:40 UTC
Created attachment 145068 [details]
Xorg.0.log captured after launching OpenArena with the corruption on-screen
Comment 13 Martin Peres 2019-11-19 08:02:23 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/184.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.