On Tue, 2001-12-04 at 17:37, Adrian Cox wrote:
> Michel D�nzer wrote:
> 
> > On Tue, 2001-12-04 at 11:27, Adrian Cox wrote:
> 
> >>I've confirmed that this fixes the problems with 800x600 mode on my 
> >>iBook2 and attached it as a patch. Can somebody please apply this (or 
> >>come up with an argument as to why it's wrong)?
> > 
> > It's wrong because the register reference says the pitch must be a
> > multiple of 64 bytes. I already submitted a patch to that effect.
> 
> 
> Presumably this problem arises because the fbdev doesn't know about this 
> restriction, so doesn't set the virtual resolution of 832x600 that it 
> needs to when asked for 800x600.

If that's the problem, then the fix should be to query the pitch (i.e.
displayWidth) from the framebuffer device. There is an
fbdevHWGetLineLength() function for this. Derrik says it's also broken
without Option "UseFBDev" though.

> The display actually works fine, so I suspect the register reference is 
> overly pessimistic here. Wouldn't be the first time.

So I'm told. :)

Still I don't like the "64*bitsPerPixel doesn't work so let's use
16*bitsPerPixel" approach...


-- 
Earthling Michel D�nzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to