svn commit: r198858 - in head/sys: dev/fb dev/syscons sys

Dag-Erling Smørgrav des at des.no
Tue Jan 26 14:00:36 UTC 2010


Alexey Dokuchaev <danfe at FreeBSD.org> writes:
> Jung-uk Kim <jkim at FreeBSD.org> writes:
> > Log:
> >   Fix VESA color palette corruption:
> >   
> >   - VBE 3.0 says palette format resets to 6-bit mode when video mode changes.
> >   We simply set 8-bit mode when we switch modes if the adapter supports it.
> Apparently this revision broke logo screen saver w/ vesa.ko on i386 (it
> works, but image is significantly darker).

A darker image indicates that the BIOS is in 8-bit mode but the driver
thinks it's in 6-bit mode, so the driver right-shifts the palette
entries by two bits.

Perhaps the BIOS is lying?

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the svn-src-head mailing list