linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Petr Vandrovec <vandrove@vc.cvut.cz>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: Bug in vga16fb?
Date: Thu, 06 Apr 2006 00:48:48 +0200	[thread overview]
Message-ID: <44344950.9090703@vc.cvut.cz> (raw)
In-Reply-To: <20060404204002.GB2251@localhost.localdomain>

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...
							Petr Vandrovec



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

  reply	other threads:[~2006-04-05 22:48 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 [this message]
2006-04-06  7:37   ` Ondrej Zajicek
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=44344950.9090703@vc.cvut.cz \
    --to=vandrove@vc.cvut.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).