linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Need advice on blitting to dword alignment
@ 2003-09-12 13:52 Thomas S. Iversen
  2003-09-12 17:09 ` James Simmons
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas S. Iversen @ 2003-09-12 13:52 UTC (permalink / raw)
  To: linux-fbdev-devel

Hi There

I am in the final stages of developing a framebufferdriver for 
the Silicon Motion Lynx series chip, but ran into troubles
during development of accelerated host blits (mono font expansion to
arbitrary bpp depths)

The Lynx chip expects data in dwords no matter what. If
the image is a multiple of 32 bits wide this is just fine, 
but if it is not I have to pad in zeros in the last dword _for 
each line_

eg. an 24bit by 16 bit mono image would consist of 1 dword for each line
taking 16 dwords to transfer.

Is there _any_ way I can force the framebuffer console system to give
images aligned to dwords? It is ofcourse possible to transfer data
using a for loop taking the padding into account, but that seems
overly complex and in-efficient compared to a memcpy_toio(src,dst,size)

Any hints or suggestions?

Regards Thomas, Denmark


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

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

end of thread, other threads:[~2003-09-13  5:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-12 13:52 Need advice on blitting to dword alignment Thomas S. Iversen
2003-09-12 17:09 ` James Simmons
2003-09-12 19:13   ` Thomas S. Iversen
2003-09-12 19:58     ` Thomas S. Iversen
2003-09-12 21:26       ` James Simmons
2003-09-13  5:17         ` Thomas S. Iversen
2003-09-12 21:24     ` James Simmons

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).