Messages in this thread Patch in this message | | | Date | Fri, 24 Oct 2003 15:14:02 +0400 | From | Andrey Panin <> | Subject | [PATCH] fix visws framebuffer 16bpp mode support |
| |
Hi all,
attached patch (2.6.0-test8) fixes visws framebuffer driver. With this patch applied XFree86 can use 16bpp video mode.
Please apply.
Best regards.
-- Andrey Panin | Linux and UNIX system administrator pazke@donpac.ru | PGP key: wwwkeys.pgp.net 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-09 01:48:28.000000000 +0400 @@ -318,15 +318,15 @@ var->transp.offset = 0; var->transp.length = 0; break; - case 16: /* RGBA 5551 */ - var->red.offset = 11; + case 16: /* ARGB 1555 */ + 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);[unhandled content-type:application/pgp-signature] | |