qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Programmingkid <programmingkidx@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	qemu-devel qemu-devel <qemu-devel@nongnu.org>,
	Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.
Date: Fri, 09 Jan 2015 09:58:30 +0100	[thread overview]
Message-ID: <1420793910.24278.6.camel@nilsson.home.kraxel.org> (raw)
In-Reply-To: <07B03389-9719-42C2-A561-05347C36D947@gmail.com>

On Do, 2015-01-08 at 12:07 -0500, Programmingkid wrote:
> On Jan 8, 2015, at 4:02 AM, Gerd Hoffmann wrote:
> 
> >  Hi,
> > 
> >> VGA: Using shared surface for depth=32 swap=1
> > 
> > Ok, 32bpp.  byteswapping needed.
> > 
> > I guess the host is a intel macintosh then?
> 
> Yes.

So we have be guest @ le host.

>  I unfortunately don't have a fast enough PowerPC Mac to handle QEMU.
> It would be interesting to find out if this color issue is on PowerPC
> hosts. 

Indeed.

> Is this what you mean?
>  s->force_shadow = 1;
>     share_surface = (!s->force_shadow) &&
>             ( depth == 32 || (depth == 16 && !byteswap) );

Yes.

> I tried it out and didn't notice any change in colors for the Mac OS X guest. 

Hmm, strange.

Can you test
   https://www.kraxel.org/cgit/qemu/log/?h=rebase/console-wip ?

> I do have an idea. What if on cocoa_update(DisplayChangeListener ...),
> we find out the format of the framebuffer. 
> 
> The DisplayChangeListener object has a QemuConsole object. The
> QemuConsole object has a DisplaySurface object. The DisplaySurface
> object has a pixman_format_code_t format variable. This format
> variable tells us what format the framebuffer is in. So is it possible
> to use it? The format types are listed in pixman.h.

Better place is probably switchSurface, so you have to look only once
for every surface, not on every display update.

Just look at surface->format.

cheers,
  Gerd

  reply	other threads:[~2015-01-09  8:58 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-05 21:27 [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue Programmingkid
2015-01-05 22:06 ` Peter Maydell
2015-01-06  0:22   ` Programmingkid
2015-01-06  9:47     ` Peter Maydell
2015-01-06 10:04       ` Peter Maydell
2015-01-06 14:46         ` Programmingkid
     [not found]       ` <B7EDB3C1-FEBC-4A62-9AAE-193B3EBE09E1@gmail.com>
     [not found]         ` <CAFEAcA9LoKh=tguGA53qXrjsUGGM8PJdN9SvXHPWnMkwDhqUAQ@mail.gmail.com>
     [not found]           ` <122C8E58-48F5-4A54-B0AF-A826492D73B6@gmail.com>
     [not found]             ` <CAFEAcA_qEXULtxkFu3n+qrQhqVfN_b0VGRgm+=2idW8i=OZVMQ@mail.gmail.com>
2015-01-06 17:19               ` Programmingkid
2015-01-06 17:30                 ` Peter Maydell
2015-01-06 17:57                   ` Programmingkid
2015-01-06 18:07                   ` Programmingkid
2015-01-06 20:29                     ` Paolo Bonzini
2015-01-06 21:33                       ` G 3
2015-01-07 10:35                         ` Paolo Bonzini
2015-01-07 14:43                           ` Gerd Hoffmann
2015-01-07 16:26                             ` Programmingkid
2015-01-08  9:02                               ` Gerd Hoffmann
2015-01-08 17:07                                 ` Programmingkid
2015-01-09  8:58                                   ` Gerd Hoffmann [this message]
2015-01-09 15:11                                     ` Programmingkid
2015-01-09 16:27                                     ` [Qemu-devel] [PATCH v2] " Programmingkid
2015-01-12  9:12                                       ` Gerd Hoffmann
2015-01-12 14:51                                         ` Programmingkid
2015-01-12 15:04                                           ` Peter Maydell
2015-01-12 16:12                                             ` Programmingkid
2015-01-12 15:11                                           ` Paolo Bonzini
2015-01-12 15:14                                             ` Peter Maydell
2015-01-12 15:37                                               ` Paolo Bonzini
2015-01-12 16:08                                             ` Programmingkid
2015-01-07 17:38                           ` [Qemu-devel] " Programmingkid
     [not found]                   ` <DDB1ECFE-F925-468A-9C9B-2EF3E276DF21@gmail.com>
     [not found]                     ` <CAFEAcA805AGKAXQ+z938YtAPN3i3hc30Hx8cYFeNR+-4Xr08=Q@mail.gmail.com>
     [not found]                       ` <8BCF0489-13DE-4E29-88FD-78F94E65FC27@gmail.com>
     [not found]                         ` <CAFEAcA_hm1qTfyHPW2BuR9r7V_o_uUVYLjoT0Sa059ESdEs9kg@mail.gmail.com>
2015-01-06 23:57                           ` Programmingkid
2015-01-07  5:17                             ` Paolo Bonzini

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=1420793910.24278.6.camel@nilsson.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=programmingkidx@gmail.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).