[Intel-gfx] [PATCH] drmmode: with 1.7 server, set mode major doesn't get gamma setup.
Eric Anholt
eric at anholt.net
Fri Oct 9 20:05:09 CEST 2009
On Fri, 2009-10-09 at 14:19 +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> Noticed this on Fedora, where 1.7 server does gamma via the randr
> codepaths however kms doesn't have this call which happens in the
> non set_mode_major path.
>
> probably should be backported to released drivers.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
Why isn't the server calling us?
> ---
> src/drmmode_display.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index ba1e751..c2ef514 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -363,6 +363,11 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
> goto done;
> #endif
>
> +#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,7,0,0,0)
> + crtc->funcs->gamma_set(crtc, crtc->gamma_red, crtc->gamma_green,
> + crtc->gamma_blue, crtc->gamma_size);
> +#endif
> +
> drmmode_ConvertToKMode(crtc->scrn, &kmode, mode);
>
>
--
Eric Anholt
eric at anholt.net eric.anholt at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20091009/ad369e67/attachment.sig>
More information about the Intel-gfx
mailing list