All of lore.kernel.org
 help / color / mirror / Atom feed
* Fwd: State of 10 bits/channel?
       [not found] <AANLkTikYDtLLg7oPheAfhDYVDYPjGpxp45qGd1kqbekd@mail.gmail.com>
@ 2010-07-22 21:34 ` Andrew Lutomirski
  2010-07-23 12:05   ` Peter Clifton
  2010-07-23 12:26   ` Chris Wilson
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Lutomirski @ 2010-07-22 21:34 UTC (permalink / raw)
  To: intel-gfx

[resend b/c I used the wrong from address last time]

I have a 10 bit/channel monitor (DisplayPort) which works quite nicely
in 8 bit mode.  I saw some patches from Peter Clifton related to 10
bit support go in awhile ago.

There are (at least) three modes that would be nice:
 (1) 8bpp framebuffer, 8 bit outputs, but 10-bit LUT with dithering.
 (2) 8bpp framebuffer, 10 bit outputs and LUT.
 (3) 10 bpp framebuffer, outputs, and LUT.

(1) would be nice with any hardware -- color calibration would look
better.  (2) would be a good start for 10 bit displays -- I could
calibrate without banding and userspace would be none the wiser
(except for a different-looking gamma ramp).  (3) would be really cool
and would differentiate us nicely from Windows, which AFAICT doesn't
really support 10 bit outputs on most (all?) hardware.

What is the hardware capable of, and what is the state of affairs
right now?  I'm running 2.6.35-rc4+ with a hacked up xf86-video-intel
with this patch:

diff --git a/src/intel_driver.c b/src/intel_driver.c
index 7761ccf..d0d1a37 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -570,6 +570,7 @@ static Bool I830PreInit(ScrnInfoPtr scrn, int flags)
       case 15:
       case 16:
       case 24:
+       case 30:
               break;
       default:
               xf86DrvMsg(scrn->scrnIndex, X_ERROR,

(Otherwise, DefaultDepth 30 won't start at all.)

With that patch and DefaultDepth 30, I get a mostly working system,
but there's no direct rendering (seems to be disabled because "DRI is
disabled because it runs only at depths 16 and 24") title bars on
gnome-terminal draw incorrectly.

Do any of you know how to ask the system what depth the output is
configured at and what depth the framebuffer is configured at?
Currently, XRRGetCrtcGammaSize return 256, which IIRC should be 129 if
10 bit gamma ramps are being used.  (That's on both CRTCs, one of
which is DP connected to the 10 bit device.)

--Andy

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: Fwd: State of 10 bits/channel?
  2010-07-22 21:34 ` Fwd: State of 10 bits/channel? Andrew Lutomirski
@ 2010-07-23 12:05   ` Peter Clifton
  2010-07-23 12:26   ` Chris Wilson
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Clifton @ 2010-07-23 12:05 UTC (permalink / raw)
  To: Andrew Lutomirski; +Cc: intel-gfx

On Thu, 2010-07-22 at 17:34 -0400, Andrew Lutomirski wrote:
> [resend b/c I used the wrong from address last time]
> 
> I have a 10 bit/channel monitor (DisplayPort) which works quite nicely
> in 8 bit mode.  I saw some patches from Peter Clifton related to 10
> bit support go in awhile ago.

They worked (crudely) for my G45, but I'm told the registers have moved
on later chipsets.

I've been totally swamped with work, and I'm not likely to get back to
the patches until next year. (After Feb some time?)

If you wanted to take over the work, please do. I could try to dig out
the patch review comments which pointed out the flaws if you can't see
them in the archive.

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)
Tel: +44 (0)1223 748328 - (Shared lab phone, ask for me)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fwd: State of 10 bits/channel?
  2010-07-22 21:34 ` Fwd: State of 10 bits/channel? Andrew Lutomirski
  2010-07-23 12:05   ` Peter Clifton
@ 2010-07-23 12:26   ` Chris Wilson
  2010-07-23 13:26     ` Andrew Lutomirski
  1 sibling, 1 reply; 4+ messages in thread
From: Chris Wilson @ 2010-07-23 12:26 UTC (permalink / raw)
  To: Andrew Lutomirski, intel-gfx

[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]

On Thu, 22 Jul 2010 17:34:09 -0400, Andrew Lutomirski <luto@mit.edu> wrote:
> [resend b/c I used the wrong from address last time]
> 
> I have a 10 bit/channel monitor (DisplayPort) which works quite nicely
> in 8 bit mode.  I saw some patches from Peter Clifton related to 10
> bit support go in awhile ago.

[snip]
 
> What is the hardware capable of, and what is the state of affairs
> right now?

AIUI, all the intel chips are capable of driving 30-bit displays. The
later generations are more flexible and faster with greater bit depth for
LUTs etc. The output driver support should (in theory) be complete, but it
hasn't been well tested due to scarcity of suitable displays.

>  I'm running 2.6.35-rc4+ with a hacked up xf86-video-intel
> with this patch:

Please submit this as a format-patch to the list for inclusion.

> With that patch and DefaultDepth 30, I get a mostly working system,
> but there's no direct rendering (seems to be disabled because "DRI is
> disabled because it runs only at depths 16 and 24") title bars on
> gnome-terminal draw incorrectly.

Hmm, the render paths should work on 10bpc surfaces. Please do file bugs
for the failures.

-- 
Chris Wilson, Intel Open Source Technology Centre

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fwd: State of 10 bits/channel?
  2010-07-23 12:26   ` Chris Wilson
@ 2010-07-23 13:26     ` Andrew Lutomirski
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Lutomirski @ 2010-07-23 13:26 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

On Fri, Jul 23, 2010 at 8:26 AM, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> On Thu, 22 Jul 2010 17:34:09 -0400, Andrew Lutomirski <luto@mit.edu> wrote:
>> [resend b/c I used the wrong from address last time]
>>
>> I have a 10 bit/channel monitor (DisplayPort) which works quite nicely
>> in 8 bit mode.  I saw some patches from Peter Clifton related to 10
>> bit support go in awhile ago.
>
> [snip]
>
>> What is the hardware capable of, and what is the state of affairs
>> right now?
>
> AIUI, all the intel chips are capable of driving 30-bit displays. The
> later generations are more flexible and faster with greater bit depth for
> LUTs etc. The output driver support should (in theory) be complete, but it
> hasn't been well tested due to scarcity of suitable displays.

OK.  I'll try to figure out how to program the output driver.  Do we
want to drive outputs at 30 bits even when the primary surface is 24
bits?  (Benefit: 10-bit LUTs.  Disadvantage: Could break existing
setups.)

Expect lots of questions from me when I run into things that are
unclear or wrong in the docs.

>
>>  I'm running 2.6.35-rc4+ with a hacked up xf86-video-intel
>> with this patch:
>
> Please submit this as a format-patch to the list for inclusion.

You only say that because there's one line too few of context to see
how dumb the patch is.  I'll fix and submit.

>
>> With that patch and DefaultDepth 30, I get a mostly working system,
>> but there's no direct rendering (seems to be disabled because "DRI is
>> disabled because it runs only at depths 16 and 24") title bars on
>> gnome-terminal draw incorrectly.
>
> Hmm, the render paths should work on 10bpc surfaces. Please do file bugs
> for the failures.

Will do.  I'll also see how close to working I can get DRI in 30-bit
mode.  (Enabling it right now exposes a silly bug in the compiz
startup scripts which results in having no window manager at all on
F13.  I'll figure out whose bug it is and file that one as well.)

>
> --
> Chris Wilson, Intel Open Source Technology Centre
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-23 13:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AANLkTikYDtLLg7oPheAfhDYVDYPjGpxp45qGd1kqbekd@mail.gmail.com>
2010-07-22 21:34 ` Fwd: State of 10 bits/channel? Andrew Lutomirski
2010-07-23 12:05   ` Peter Clifton
2010-07-23 12:26   ` Chris Wilson
2010-07-23 13:26     ` Andrew Lutomirski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.