[PATCHES] improve gamma support for randr-1.2 drivers

Shunichi Fuji palglowr at gmail.com
Wed Jan 7 08:27:05 PST 2009


hi, some application say like below

..XFree86-VidMode Extension Version 2.2
..XFree86-Xinerama Extension Version 1.1
..Got colorbits 24, depthbits 24, stencilbits 8
...setting mode 3:
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  129 (XFree86-VidModeExtension)
  Minor opcode of failed request:  17 (XF86VidModeGetGammaRamp)
  Value in failed request:  0x27
  Serial number of failed request:  61
  Current serial number in output stream:  61

per crtc gamma support goes well, BTW per screen support seems somehow break now.

how do you like that 
base screen gamma(old colourmap system?) + per crtc gamma bias(randr parameter)?
i'm not sure, most situation that needs this support is clone-mode? 


On Tue, 16 Dec 2008 22:07:37 +0100
Maarten Maathuis <madman2003 at gmail.com> wrote:

> These two patches should accomplish the following:
> 
> - Usage of Gamma in xorg.conf will be associated with an output and set 
> on the initial crtc.
>    (This should work as good as possible for clone modes, eg a non-1.0 
> gamma will not be overwritten with a standard value)
> - Gamma is stored from preinit and between server generations.
> - The old colourmap system will be disabled if gamma hook is available.
> - xrandr can now set gamma.
> 
> My main question is, are there any xserver ABI's to bump due to the 
> changes to the xf86CrtcRec struct?
> 
> Maarten.
> 



More information about the xorg mailing list