|
From: Geert U. <ge...@li...> - 2001-12-29 13:08:10
|
On 29 Dec 2001, Johan Bolmsjo wrote:
> 2) var.bits_per_pixel returned is 15 for RGB1555 and RGB565 modes.
> var.bits_per_pixel should be 16 for both these modes. One should
> then use the colour bit masks to see which mode is used.
>
> I'm not 100% sure on my reasoning on 2) but I think it has been up
> on the list before.
Yes, var.bits_per_pixel must be the physical size of one pixel. The separation
in different color channels must be reflected in the color bitfields.
> Is there any test program that tests all frame-buffer modes to detect
> ill behaviours in frame-buffer drivers? Not all drivers seem to work
> the same way..
CVS module fbtest from project linux-fbdev at SourceForge.
Someone should fill in the (currently empty) routines {fix,var}_validate(), and
some tests to test all (how do you do that?) frame-buffer modes.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li...
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
|