qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 4 of 5] sdl shared buffer support
Date: Mon, 08 Sep 2008 15:20:13 +0100	[thread overview]
Message-ID: <48C5349D.60707@eu.citrix.com> (raw)
In-Reply-To: <48C4764B.2060008@codemonkey.ws>

Anthony Liguori wrote:

> Stefano Stabellini wrote:
>> This patch implements shared buffer support in sdl.c.
>> It also supports paletted 8 bit colour depths using the
>> palette functions provided by the SDL library.
>>   
> 
> So the theory goes that it's possible with this patch that both surfaces
> are hardware surfaces so blitting is fast?


The theory goes that SDL blitting and color conversion functions should
be as optimized as you can get, and hardware accelerated if your card
supports it.
Besides I think that offloading blitting and color conversion to a
graphic library is a good idea.

> In practice, when using X11
> both surfaces are going to be XShmImages so I don't think this is going
> to perform any better than the current code.

Only the guest framebuffer derived surface is always a software surface,
the host window can be an hardware surface (as far as I know).

> Do you have any sort of measurements that show an advantage with this
> patch?

I don't have any numbers, but I'll try to get some.

> I sort of think you want the opposite interface.  One where the VGA code
> uses ds->data directly if the guest ds->data is in a supportable format.

Not really, because the frontend can often change his own internal
resolution and pixel format (ex.: vnc).

  reply	other threads:[~2008-09-08 14:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04 14:27 [Qemu-devel] [PATCH 4 of 5] sdl shared buffer support Stefano Stabellini
2008-09-08  0:48 ` Anthony Liguori
2008-09-08 14:20   ` Stefano Stabellini [this message]
2008-09-08 14:31     ` Anthony Liguori

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=48C5349D.60707@eu.citrix.com \
    --to=stefano.stabellini@eu.citrix.com \
    --cc=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    /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).