Bug 24034 - Cursor broken in many games under KMS
Summary: Cursor broken in many games under KMS
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium major
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-19 02:40 UTC by Maciej Cencora
Modified: 2009-09-19 10:13 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg.log (105.17 KB, text/plain)
2009-09-19 05:53 UTC, Maciej Cencora
no flags Details
init dga on kms (449 bytes, patch)
2009-09-19 08:02 UTC, Alex Deucher
no flags Details | Splinter Review

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.