Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Clemens Eisserer <linuxhippy@gmail.com>,
	intel-gfx <intel-gfx@lists.freedesktop.org>
Subject: Re: Advantages of CreateSolidFill as src for CompositeText?
Date: Tue, 15 Jun 2010 16:03:58 +0100	[thread overview]
Message-ID: <89khjo$fmlcjb@orsmga002.jf.intel.com> (raw)
In-Reply-To: <AANLkTikLcp12XvuFzvNn6rWKeN0QHnL3jNZLeJ-DFiHq@mail.gmail.com>

On Tue, 15 Jun 2010 16:08:45 +0200, Clemens Eisserer <linuxhippy@gmail.com> wrote:
> With 2.11.901 everything seems to be fine, but I wonder - what is the
> preferred way to do this across different drivers (EXA)?
> I remember I decided to go with the 1x1 pixmap because EXA back then
> didn't like solid fills with alpha value, and 1x1 pixmaps performed
> quite well everywhere.

If it did not trigger fallbacks in the current EXA drivers, I would
recommend going with SolidFill instead of 1x1 pixmaps (and similarly would
enable them in Cairo).

Using SolidFill (PineView):
36000000 trep @   0.0008 msec (1290000.0/sec): Char in 80-char aa line (Charter 10)
32000000 trep @   0.0008 msec (1270000.0/sec): Char in 80-char rgb line (Charter 10)
Using 1x1R (PineView):
32000000 trep @   0.0008 msec (1250000.0/sec): Char in 80-char aa line (Charter 10)
32000000 trep @   0.0008 msec (1230000.0/sec): Char in 80-char rgb line (Charter 10)

Whilst that only indicates a 4% throughput improvement in a pretty ideal
scenario, for a more normal application there is also a reduction in the
volume of X traffic, as creating a SolidFill is much cheaper than creating
and filling a 1x1R. Also the above benchmark does not reveal the cost of
immediately using a 1x1R as a solid colour after creation, as that incurs
the overhead of a readback currently.
-ickle

-- 
Chris Wilson, Intel Open Source Technology Centre

      reply	other threads:[~2010-06-15 15:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-15 14:08 Advantages of CreateSolidFill as src for CompositeText? Clemens Eisserer
2010-06-15 15:03 ` Chris Wilson [this message]

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='89khjo$fmlcjb@orsmga002.jf.intel.com' \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=linuxhippy@gmail.com \
    /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