Bug 24034

Summary: Cursor broken in many games under KMS
Product: xorg Reporter: Maciej Cencora <m.cencora>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: medium    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.log
none
init dga on kms none

Description Maciej Cencora 2009-09-19 02:40:26 UTC
UT2004 demo windowed mode:
cursor is working okay while in menu and during the game until the menu is invoked - after resuming the game the mouse movements seems to cause some random cursor movement events.

UT2004 demo fullscreen mode:
no cursor available.

Painkiller:Overdose under wine:
cursor available while in menu, unavailable during gameplay.

Penumbra Overture windowed mode:
cursor available while in menu, unavailable during gameplay.

Penumbra Overture fullscreen mode:
no cursor available.

Cursor in all these games is working fine when system is run without KMS.

GPU RV535,
ATI ddx driver version: 52279251fae9df99c569c16e2522bbd346d8ec38 (origin/master)
Xserver version: c73cd3b265c301b8a54ffe484d6c696f2abefb46 (origin/master)
Radeon drm module: d42571efe33552cd519b7f3800a788b5f2d51798 (airlied/drm-next)
Comment 1 Michel Dänzer 2009-09-19 04:44:14 UTC
First of all, any X related bug report needs at least the full log file.

Define 'cursor unavailable' - do you mean the cursor is not visible, or something else?

Does

    xdpyinfo|grep DGA

give any hits?
Comment 2 Maciej Cencora 2009-09-19 05:53:02 UTC
Created attachment 29698 [details]
Xorg.log

xdpyinfo | grep DGA returns:
XFree86-DGA

Yes, when saying cursor is unavailable I meant cursor is not visible.
Comment 3 Alex Deucher 2009-09-19 08:02:29 UTC
Created attachment 29699 [details] [review]
init dga on kms

The kms path never inits DGA.  Maybe something like this untested patch?
Comment 4 Maciej Cencora 2009-09-19 09:15:13 UTC
(In reply to comment #3)
> Created an attachment (id=29699) [details]
> init dga on kms
> 
> The kms path never inits DGA.  Maybe something like this untested patch?
> 

Yes, this patch fixes all the problems.
Thanks!
Comment 5 Alex Deucher 2009-09-19 10:13:34 UTC
pushed as da7487f6ac7b32ed7866af53da2925aa52ed7aae

However, as Keith pointed out on the xorg-devel:
http://lists.freedesktop.org/archives/xorg-devel/2009-September/002113.html
using DGA for graphics (not cursor or modesetting) won't work in this case.

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.