Re: [Linux-fbdev-devel] Re: [PATCH] fbdev: colormap fixes

James Simmons
2005-07-29T20:23:42Z

> > No, bits_per_pixel can be (much) larger than the color map size. E.g. a simple
> > ARGB8888 directcolor mode has bits_per_pixel = 32 and color map size = 256.
>
> So I have the bits_per_pixel attribute wrong in sysfs. It needs to be
> bits_per_color and then let the driver sort it out. Otherwise there
> is no way to set ARGB8888 versus ARGB2101010. With bits per color you
> would set 8 or 10.

You would need bits_per_read, bit_per_green. This doesn't event count the
other color spaces avaliable like YUV.