Thread (6 messages) 6 messages, 4 authors, 2005-07-26

Re: [PATCH] add NULL short circuit to fb_dealloc_cmap()

flat view

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2005-07-26 07:14:23
Also in: lkml

On Sun, 17 Jul 2005, Jon Smirl wrote:
On 7/17/05, Geert Uytterhoeven [off-list ref] wrote:
quoted
quoted
struct fb_super_cmap {
   struct fb_cmap cmap;
   __u16 red[255];
   __u16 blue[255];
   __u16 green[255];
   __u16 transp[255];
                  ^^^
I assume you meant 256?
quoted
}

Then adjust the code as need. Have the embedded cmap struct point to
the fields in the super_cmap and the drivers don't have to be changed.
What if your colormap has more than 256 entries?
I meant 256. Does any hardware exist that takes more that 256 entries? 
1024 was quite common on high-end graphics hardware.
They are __u16 values but I have never seen hardware that take more
that __u8 either.
10 bit was quite common on high-end graphics hardware.

IIRC, DEC TGA can do at least one of them.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help