9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Artem Letko" <aletko@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] nvidia scrolling performance
Date: Mon,  1 May 2006 13:57:56 -0400	[thread overview]
Message-ID: <1055b16f0605011057h1ef7acdbra2fdb6e4bb646f20@mail.gmail.com> (raw)
In-Reply-To: <e0997b934fd5919f5dd4a1b705147cca@swtch.com>

what if we use hardware to do blits with alpha?

-art

On 5/1/06, Russ Cox <rsc@swtch.com> wrote:
> > why does the framebuffer need to be consulted when the background is a known,
> > solid color?
>
> the underlying operation is just plain draw,
> and drawing text corresponds to drawing
> solid black through the font (as a mask)
> onto the destination image.  if the mask has
> fractional alpha, that requires reading the
> destination image to do the mixing.
>
> the destination image might in this case
> be a known solid color, but in general it
> need not be.
>
> you could address this by adding a fourth argument
> to memdraw and then using it inside devdraw
> to specify a "read from this instead of the destination"
> image.  it's not clear to me that this is worth the bother,
> and it makes the interface less clean.  you'd also have
> to redo libframe to use stringbg everywhere.
>
> russ
>
>


  reply	other threads:[~2006-05-01 17:57 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-01  0:30 erik quanstrom
2006-05-01 17:44 ` Russ Cox
2006-05-01 17:57   ` Artem Letko [this message]
2006-05-01 19:02     ` Russ Cox
  -- strict thread matches above, loose matches on Subject: below --
2006-05-05 18:08 erik quanstrom
2006-05-05 17:22 erik quanstrom
2006-05-05 17:32 ` Paul Lalonde
2006-05-05 16:08 erik quanstrom
2006-05-05 16:42 ` David Leimbach
2006-05-05 15:46 erik quanstrom
2006-05-05 15:56 ` Paul Lalonde
2006-05-05 16:01   ` David Leimbach
2006-05-05 16:21     ` Paul Lalonde
2006-05-05 16:59       ` David Leimbach
2006-05-05 16:05   ` Wes
2006-05-05 17:07   ` Ronald G Minnich
2006-05-05 17:30     ` Paul Lalonde
2006-05-01  0:52 erik quanstrom
2006-05-01  1:00 ` Paul Lalonde
2006-04-29 21:39 erik quanstrom
2006-04-30  4:00 ` jmk
2006-04-30 16:10 ` Russ Cox
2006-04-30 18:12   ` Steve Simon
2006-04-30 22:34     ` Ronald G Minnich
2006-05-01  6:52       ` Nigel Roles
2006-05-01 19:58         ` Ronald G Minnich
2006-05-01 20:10           ` David Leimbach

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=1055b16f0605011057h1ef7acdbra2fdb6e4bb646f20@mail.gmail.com \
    --to=aletko@gmail.com \
    --cc=9fans@cse.psu.edu \
    /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).