Re: Need advice on blitting to dword alignment
From: Thomas S. Iversen <hidden>
Date: 2003-09-12 19:15:02
On Fri, Sep 12, 2003 at 06:09:56PM +0100, James Simmons wrote: Hi Again
The NVIDIA fbdev driver had the same problems. That is what struct
fb_pixmap is for. Since you need 32 bit padded images you would need to
fill in your own pixmap when you initalize the driver. Something like
this.
info->pixmap.addr = kmalloc(64*1024, GFP_KERNEL);
info->pixmap.size = 64 * 1024;
info->pixmap.buf_align = 4;
info->pixmap.scan_align = 4;
info->pixmap.flags = FB_PIXMAP_SYSTEM;[snip] Thanks a million --- you guys truely rocks! The good part is, that now my mono/font expansion blit actually works and I can actually feel the improvement when scrolling around in emacs ;-) .... but it came at a cost it seems: * My software cursor became messed up/flashing. I suspect that the software cursor does not work with alignment>1, but is that right?? * Tux, which was nicely drawn using the software fallback before I changed the pixmap alignment, became messed up. It made me suspect that the software imageblit does not work when alignment>1, and further tests seemed to support this. Can I fix it somehow? Or is it fixed in later kernel versions? (I use 2.5.73 for development at the moment) Regards Thomas ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf