[PATCH] When an cursor is set, it is adjusted to use the gamma ramps of the CRTC:s that it is loaded on.

Mattias Andrée maandree at member.fsf.org
Mon Apr 14 18:46:28 PDT 2014

To my knowledge no GPU:s does it automatically,
but yes it probably should be handled by the
drivers. However would it be possible to add this
patch as an optional feature, I know it is a
wanted featured and figuring out which kernel
drivers need patching and patch and test them
is not feasible for me.

On Tue, 15 Apr 2014 10:31:34 +0900
Michel Dänzer <michel at daenzer.net> wrote:

> On 15.04.2014 10:18, Mattias Andrée wrote:
> > This could be improved to be done in
> > `crtc->funcs->load_cursor_argb` with more
> > accurate adjustments. But I was not able to
> > find where `crtc->funcs->load_cursor_argb`
> > is implement.
> >
> > Additionally, `xf86_reload_cursors` should be
> > called when the gamma settings changes. This
> > way the cursor's colours are adjusted to use
> > the gamma settings directly when the gamma
> > is modified rather than the next time its
> > image changes.
> AFAIK there are GPUs which handle this automagically, so
> I'm afraid the X server is the wrong level to solve this.
> It should be handled by the drivers (with KMS, probably
> in the kernel).

More information about the xorg-devel mailing list