linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC: bitmap line alignment
@ 2005-11-25 12:16 Knut Petersen
  2005-11-25 12:36 ` Antonino A. Daplas
  0 siblings, 1 reply; 3+ messages in thread
From: Knut Petersen @ 2005-11-25 12:16 UTC (permalink / raw)
  To: linux-fbdev-devel

Hi everybody

I learned the hard way that image->width*image->height is not equal to the
number of bits consumed by the image bitmap. Every single line of bits is
aligned to a byte boundary.

Wouldn´t it be much more efficient to align every line to an u32 boundary?
Despite the obvious advantages of aligned cpu access to large arrays it
would also help to simplify the code for at least the cyberblade 
acceleration
engine.

The cyberblade always requires 32 bit quantities, so if the width of the 
image
is eg. 33, I have to feed _two_ u32 to it for every pixel line. Is the 
same true
for other acceleration engines?

I have not read the code of most of the framebuffer drivers, but I know 
that
a lot of them do not use accelerated imageblits. Those that do provide 
their own
functions would need to be adapted, as well as the cfb_imageblit 
function ...

Comments, please.

cu,
 Knut


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-25 14:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-25 12:16 RFC: bitmap line alignment Knut Petersen
2005-11-25 12:36 ` Antonino A. Daplas
2005-11-25 14:10   ` Knut Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).