Re: FB_VISUAL_TRUECOLOR vs.FB_VISUAL_DIRECTCOLOR

"James Lehman" <[email protected]> Sun, 6 Aug 2006 22:17:19 -0400
Newsgroups gmane.linux.fbdev.user
Message-ID <00ea01c6b9c7$9c8fad50$0b00a8c0@bug>
I have a bit more work to do. I found that getting the color map right for
packed pixel mode, 565, was kind of tricky; as you had indicated. I also
realized that my code sort of relies on the fact that the color map is NOT
in use when the card is in bpp higher than 8. I use the color map to hold
shifted values from a palette bitmap file to get the colors onto the screen.
So I will have to rewrite that stuff; because with a direct color card, the
color map is always in use. I would love to send you a snapshot of my code.
It comes with a demo program that runs the video card through all sorts of
tests in every possible bpp.

James.   :o)


----- Original Message ----- 
From: "Antonino A. Daplas" <[email protected]>
To: <[email protected]>; "James Lehman"
<[email protected]>
Sent: Sunday, August 06, 2006 7:42 PM
Subject: Re: [Linux-fbdev-users] FB_VISUAL_TRUECOLOR
vs.FB_VISUAL_DIRECTCOLOR


> James Lehman wrote:
> > I'm not so sure there is a bug in the kernel or the drivers, but I can
say
> > for sure that this code gets called.
>
> Then it's a bug.
>
> Can you try removing fb_set_cmap() in driver/video/fbmem.c:fb_set_var()?
> If that still does not work, can you point me to a test app?
>
> Just to clarify, is this the sequence, or something near this?
>
> ...
> ioctl(KD_GRAPHICS);
> ...
> ioctl(FBIOPUT_VSCREENINFO);
>
> ioctl(FBIOPUTCMAP);
> ...
> ioctl(KD_TEXT);
> ...
>
> Tony
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Linux-fbdev-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV