linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Thomas S. Iversen" <zensonic@zensonic.dk>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Need advice on blitting to dword alignment
Date: Fri, 12 Sep 2003 15:52:29 +0200	[thread overview]
Message-ID: <20030912135229.GA12523@zensonic.dk> (raw)

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

             reply	other threads:[~2003-09-12 13:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-12 13:52 Thomas S. Iversen [this message]
2003-09-12 17:09 ` Need advice on blitting to dword alignment 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030912135229.GA12523@zensonic.dk \
    --to=zensonic@zensonic.dk \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).