qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] sdl shared buffer support
Date: Wed, 3 Sep 2008 17:37:18 +0100	[thread overview]
Message-ID: <20080903163717.GO20308@redhat.com> (raw)
In-Reply-To: <48BEB743.5050805@eu.citrix.com>

On Wed, Sep 03, 2008 at 05:11:47PM +0100, Stefano Stabellini wrote:
> Stefano Stabellini wrote:
> 
> > Blue Swirl wrote:
> > 
> >> This function is broken if BGR-ness of the display is not equal to
> >> emulated device BGR-ness.
> >>
> > 
> > good catch!
> > I am going to send an updated version of this and the opengl patch soon
> > to fix the issue.
> > 
> 
> I replied to this email a little too fast: reading vga.c and
> vga_template.h again more carefully it occurred to me that the guest is
> always RGB, only the host can set the sdl display to BGR.
> Hence we don't need to handle this case in sdl_setdata, because if there
> is any difference in depth or subpixel ordering between host and guest,
> is up to SDL_BlitSurface to solve it.
> 
> But there is a similar issue that I wasn't handling: guest big endian
> and host little endian or vice versa.
> In fact I need to set different colour masks in sdl setdata according to
> the guest endianness.

Just to complicate things still further, the endianness of the host running
QEMU may not be the same as the endianness of the X server display. 

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

      reply	other threads:[~2008-09-03 16:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-29 15:21 [Qemu-devel] [PATCH] sdl shared buffer support Stefano Stabellini
2008-08-29 15:49 ` Stefano Stabellini
2008-09-02 16:32 ` Ian Jackson
2008-09-02 17:22 ` Blue Swirl
2008-09-03 10:37   ` Stefano Stabellini
2008-09-03 16:11     ` Stefano Stabellini
2008-09-03 16:37       ` Daniel P. Berrange [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=20080903163717.GO20308@redhat.com \
    --to=berrange@redhat.com \
    --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).