qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] sdl shared buffer support
Date: Wed, 03 Sep 2008 17:11:47 +0100	[thread overview]
Message-ID: <48BEB743.5050805@eu.citrix.com> (raw)
In-Reply-To: <48BE68E8.7050404@eu.citrix.com>

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.

  reply	other threads:[~2008-09-03 16:10 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 [this message]
2008-09-03 16:37       ` Daniel P. Berrange

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=48BEB743.5050805@eu.citrix.com \
    --to=stefano.stabellini@eu.citrix.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).