Bug 92510 - Radeon screen corruption and flickering under wine (bisected)
Summary: Radeon screen corruption and flickering under wine (bisected)
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-17 19:13 UTC by Marcin Deranek
Modified: 2016-06-05 10:20 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Screenshot (2.69 MB, image/png)
2015-10-17 19:13 UTC, Marcin Deranek
no flags Details
xorg log file (52.40 KB, text/plain)
2015-10-20 19:17 UTC, Marcin Deranek
no flags Details

Description Marcin Deranek 2015-10-17 19:13:46 UTC
Created attachment 118939 [details]
Screenshot

While playing Heroes of Might and Magic 5 (Tribes of the East) under wine I noticed that at certain point in time I started getting screen corruptions (see attached screenshot) and flickering. I did bisect and it turned out to be the following commit which caused it:

commit f8b0f23e9f4af9f9097ee5e72d53b45173163c41
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Fri Mar 27 12:34:55 2015 +0900

    DRI2: Use radeon_get_pixmap_handle

    Now we can share pixmaps with no struct radeon_bo via DRI2.

    Fixes VDPAU video playback freezing when using an OpenGL compositor with
    DRI3 enabled.

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

    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
    Tested-by: Nick Sarnie <commendsarnex@gmail.com>

Interestingly reverting this commit fixed DRI2, but not DRI3 (display is still corrupted and flickery).
I am using Gentoo with xf86-video-ati git, xorg-server-1.17.2-r2, kernel 4.2.3, and XFCE + Compiz (switching off compiz makes no difference).
Comment 1 Michel Dänzer 2015-10-20 09:49:20 UTC
Please attach the Xorg log file, preferably captured after the problem occurred.

For testing with DRI2, do you disable Option "DRI3" in xorg.conf or just set LIBGL_DRI3_DISABLE=1 for the app?
Comment 2 Marcin Deranek 2015-10-20 19:17:06 UTC
Created attachment 119018 [details]
xorg log file
Comment 3 Marcin Deranek 2015-10-20 19:20:59 UTC
AFAICS DRI2 is default. For DRI3 I add
Option "DRI" "3"
to xorg-server configuration file (/etc/X11/xorg.conf.d/20-radeon.conf in my case). Effectively to test DRI2 and DRI3 I do need to restart X server.
Comment 4 Marcin Deranek 2016-06-05 09:32:23 UTC
Closing as this does not seem to be a case anymore with:
kernel-4.6.0
mesa-11.2.2
wine-1.9.11
xf86-video-ati-7.7.0


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.