Problem with DGA, page flipping and invisible mouse cursor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm using SDL to write a program.

If I use the standard X11 graphics driver all is fine.

However, if I set SDL to use the DGA driver as opposed to the standard X
graphics driver, and in addition instruct SDL to use page flipping (as
opposed to simply blitting from an off screen surface to the video
memory each frame), the mouse cursor becomes invisible.

Obviously this is partially to do with SDL as well as XFree86, but given
that SDL is nothing more than an API layer to calls on the relevant
drivers provided by other systems (in this case XFree86) I'm not
surprised that noone on the SDL mailing list could tell me where my
problem lies.

Here is a summary of different combinations of settings and the
different results they cause:

- Standard X11 driver (implying software display surface and no page
flipping):

No problems.

- DGA driver with software surface and no page flipping:

No problems.

- DGA driver with hardware surface and no page flipping:

Display flickers wildly (to be expected), the mouse cursor also flickers
a lot and is invisible more often than not, but nonetheless it is
definitely there.

- DGA driver with hardware surface and page flipping:

Mouse cursor totally invisible

- DGA driver with software surface and page flipping

Impossible.


So I guess that page flipping is somehow overwriting the cursor, but
this is low level enough that simply looking through the SDL source code
isn't really providing any answers.

Could anyone provide any sort of pointers? Even just a brief (and
simplified) explanation of how page flipping and mouse cursor work with
DGA so I might know where to start looking for the solution?

Thanks,

	James

_______________________________________________
XFree86 mailing list
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux