Re: [PATCH] cfbimgblt: Allow generic BitBLT functions to work with swapped pixel order in bytes.

Geert Uytterhoeven <[email protected]> Fri, 31 Aug 2007 11:23:59 +0200 (CEST)
Newsgroups gmane.linux.fbdev.user
Message-ID <Pine.LNX.4.64.0708311121060.12548@anakin>
On Fri, 31 Aug 2007, Pavel Pisa wrote:
> Even if swapping support is enabled, I would like to allow control
> actual swapping through some field in mode information and propagated
> to
>    struct fb_info->var or fix 
>         struct fb_var_screeninfo
>         struct fb_fix_screeninfo
> 
> have you idea for name and correct place for this SWAP_PIXELS_IN_BYTE
> bit/flag.

The proper place for a driver to advertise this (for the current mode) is
fb_fix_screeninfo.type.  We can add a new type, e.g.
FB_TYPE_PACKED_PIXELS_SWAP, for non-native ordering of pixels.

To control byte swapping when setting the video mode, we could use
fb_var_screeninfo.nonstd and a new FB_NONST_* value.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/