From: Ondrej Zajicek <santiago@mail.cz>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: Bug in vga16fb?
Date: Thu, 6 Apr 2006 09:37:13 +0200 [thread overview]
Message-ID: <20060406073713.GA3051@localhost.localdomain> (raw)
In-Reply-To: <44344950.9090703@vc.cvut.cz>
[-- Attachment #1: Type: text/plain, Size: 1929 bytes --]
On Thu, Apr 06, 2006 at 12:48:48AM +0200, Petr Vandrovec wrote:
> Ondrej Zajicek wrote:
> >Hello
> >
> >I tried vga16fb driver in 320x200x4 nonstd mode (on i386 - little endian).
> >In
> >this mode framebuffer reports PACKED PIXELS type. Drawing through
> >framebuffer
> >is OK, but console is broken - it looks like that even and odd columns are
> >exchanged.
> >
> >Framebuffer structure of this mode is that even pixel is in high nibble and
> >odd pixel is in low nibble.
> >
> >It looks like vga16fb use cfbimgblt.c/slow_imageblit in this mode for
> >image-blit and this function in CFB4 writes even pixel in low nibble and
> >odd pixel in high nibble.
> >
> >What is correct framebuffer structure for CFB4 mode?
>
> Unfortunately there is no standard, as CFB4 itself is quite non-standard
> VGA mode. Some videocards first output low nibble, followed by high, and
> some do otherwise. I've experimented with this back in 2000, and I've
> found that Matrox Millennium does exactly opposite than some ATI Mach64
> card I had in another box at that time.
>
> So your only option is providing two CFB4 modes. Unfortunately I have no
> idea how to autodetect what your hardware actually does without adding
> camera to the system...
Even if we find some possibility to autodetect what hardware does (or in
case of another, non-VGA hardware using CFB4 mode) there would be
problem that driver cannot say it to userspace (or generic kernel
functions like cfb_imageblit). Maybe there should be some flag in
type_aux specifying whether given packed pixel mode is LSB-first or
MSB-first (relevant only for bpp % 8 != 0) ?
--
Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@mail.cz, jabber: santiago@njs.netlab.cz)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2006-04-06 7:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-04 20:40 Bug in vga16fb? Ondrej Zajicek
2006-04-05 22:48 ` Petr Vandrovec
2006-04-06 7:37 ` Ondrej Zajicek [this message]
2006-04-06 13:56 ` Antonino A. Daplas
2006-04-06 14:39 ` Ondrej Zajicek
2006-04-06 16:44 ` Antonino A. Daplas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060406073713.GA3051@localhost.localdomain \
--to=santiago@mail.cz \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).