* [PATCH] visws: fix 16 bit framebuffer mode
@ 2003-10-03 8:02 pazke
2003-10-07 9:25 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: pazke @ 2003-10-03 8:02 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 225 bytes --]
Hi all,
attached patch (from Florian Boor) allows X to work on visws
in 16 bit framebuffer mode.
Please apply.
--
Andrey Panin | Linux and UNIX system administrator
pazke@donpac.ru | PGP key: wwwkeys.pgp.net
[-- Attachment #1.2: patch-sgivwfb --]
[-- Type: text/plain, Size: 1061 bytes --]
diff -urN -X /usr/share/dontdiff linux-2.6.0-test6.vanilla/drivers/video/sgivwfb.c linux-2.6.0-test6/drivers/video/sgivwfb.c
--- linux-2.6.0-test6.vanilla/drivers/video/sgivwfb.c 2003-08-09 08:36:42.000000000 +0400
+++ linux-2.6.0-test6/drivers/video/sgivwfb.c 2003-10-02 01:41:30.000000000 +0400
@@ -319,14 +319,14 @@
var->transp.length = 0;
break;
case 16: /* RGBA 5551 */
- var->red.offset = 11;
+ var->red.offset = 10;
var->red.length = 5;
- var->green.offset = 6;
+ var->green.offset = 5;
var->green.length = 5;
- var->blue.offset = 1;
+ var->blue.offset = 0;
var->blue.length = 5;
- var->transp.offset = 0;
- var->transp.length = 0;
+ var->transp.offset = 15;
+ var->transp.length = 1;
break;
case 32: /* RGB 8888 */
var->red.offset = 0;
@@ -509,7 +509,7 @@
SET_DBE_FIELD(WID, TYP, outputVal, DBE_CMODE_I8);
break;
case 2:
- SET_DBE_FIELD(WID, TYP, outputVal, DBE_CMODE_RGBA5);
+ SET_DBE_FIELD(WID, TYP, outputVal, DBE_CMODE_ARGB5);
break;
case 4:
SET_DBE_FIELD(WID, TYP, outputVal, DBE_CMODE_RGB8);
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] visws: fix 16 bit framebuffer mode
2003-10-03 8:02 [PATCH] visws: fix 16 bit framebuffer mode pazke
@ 2003-10-07 9:25 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2003-10-07 9:25 UTC (permalink / raw)
To: pazke; +Cc: Linux Kernel Development, Linux Frame Buffer Device Development
On Fri, 3 Oct 2003 pazke@donpac.ru wrote:
> attached patch (from Florian Boor) allows X to work on visws
> in 16 bit framebuffer mode.
Please also change the comment from `RGBA5551' to `ARGB1555' to match the code.
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-07 9:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-03 8:02 [PATCH] visws: fix 16 bit framebuffer mode pazke
2003-10-07 9:25 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox