Re: [Intel-gfx] rfc: breaking old userspace gamma for 10-bit support

2011-04-20 Thread Andrew Lutomirski
On Wed, Apr 20, 2011 at 3:38 PM, Jesse Barnes wrote: >> > Andrew, do you have anything hacked together for this yet? >> >> Nope.  I gave up because I couldn't even get the mode to set. :) > > Ok well you should be able to now. :)  Using the patchset I posted > earlier along with the two attached p

Re: [Intel-gfx] rfc: breaking old userspace gamma for 10-bit support

2011-04-20 Thread Jesse Barnes
> > Andrew, do you have anything hacked together for this yet? > > Nope. I gave up because I couldn't even get the mode to set. :) Ok well you should be able to now. :) Using the patchset I posted earlier along with the two attached patches, the testdisplay program in intel-gpu-tools will set a

Re: [Intel-gfx] rfc: breaking old userspace gamma for 10-bit support

2011-04-20 Thread Andrew Lutomirski
On Wed, Apr 20, 2011 at 3:05 PM, Jesse Barnes wrote: > On Tue, 27 Jul 2010 11:03:56 -0400 > Adam Jackson wrote: > >> On Fri, 2010-07-23 at 16:29 -0400, Andrew Lutomirski wrote: >> >> > Does that include not breaking DirectColor?  If we program the gamma >> > ramp to 129 slots, old userspace submi

Re: [Intel-gfx] rfc: breaking old userspace gamma for 10-bit support

2011-04-20 Thread Jesse Barnes
On Tue, 27 Jul 2010 11:03:56 -0400 Adam Jackson wrote: > On Fri, 2010-07-23 at 16:29 -0400, Andrew Lutomirski wrote: > > > Does that include not breaking DirectColor? If we program the gamma > > ramp to 129 slots, old userspace submits 256 entries that are not > > monotonic, and we decimate the

Re: [Intel-gfx] rfc: breaking old userspace gamma for 10-bit support

2010-07-27 Thread Adam Jackson
On Fri, 2010-07-23 at 16:29 -0400, Andrew Lutomirski wrote: > Does that include not breaking DirectColor? If we program the gamma > ramp to 129 slots, old userspace submits 256 entries that are not > monotonic, and we decimate the gamma ramp, we'll display the wrong > thing. I have no idea if th

Re: [Intel-gfx] rfc: breaking old userspace gamma for 10-bit support

2010-07-26 Thread Eric Anholt
On Fri, 23 Jul 2010 16:29:06 -0400, Andrew Lutomirski wrote: > On Fri, Jul 23, 2010 at 4:13 PM, Eric Anholt wrote: > > On Fri, 23 Jul 2010 14:00:30 -0400, Andrew Lutomirski wrote: > >> AFAICT intel hardware wants a 129-entry LUT when using high precision > >> gamma ramps.  Rather than hacking so

Re: [Intel-gfx] rfc: breaking old userspace gamma for 10-bit support

2010-07-23 Thread Andrew Lutomirski
On Fri, Jul 23, 2010 at 4:13 PM, Eric Anholt wrote: > On Fri, 23 Jul 2010 14:00:30 -0400, Andrew Lutomirski wrote: >> AFAICT intel hardware wants a 129-entry LUT when using high precision >> gamma ramps.  Rather than hacking some kind of decimation into the >> kernel driver (and thus silently bre

Re: [Intel-gfx] rfc: breaking old userspace gamma for 10-bit support

2010-07-23 Thread Eric Anholt
On Fri, 23 Jul 2010 14:00:30 -0400, Andrew Lutomirski wrote: > AFAICT intel hardware wants a 129-entry LUT when using high precision > gamma ramps. Rather than hacking some kind of decimation into the > kernel driver (and thus silently breaking DirectColor), I'd like to > teach userspace how to d

[Intel-gfx] rfc: breaking old userspace gamma for 10-bit support

2010-07-23 Thread Andrew Lutomirski
AFAICT intel hardware wants a 129-entry LUT when using high precision gamma ramps. Rather than hacking some kind of decimation into the kernel driver (and thus silently breaking DirectColor), I'd like to teach userspace how to deal with variable gamma sizes. gnome-color-manager already more-or-le