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: Thu, 08 Jan 2015 10:02:56 +0100	[thread overview]
Message-ID: <1420707776.24470.15.camel@nilsson.home.kraxel.org> (raw)
In-Reply-To: <67F5B5C0-41E1-4399-8A11-C3821394C31D@gmail.com>

  Hi,

> VGA: Using shared surface for depth=32 swap=1

Ok, 32bpp.  byteswapping needed.

I guess the host is a intel macintosh then?

Having a quick look at the cocoa code it seems it doesn't look at the
color masks and shifts, only the color depth.  So having the UI handle
the byteswapping that way isn't going to fly.

Try setting force_shadow (vga.c, needs git master) to one.  That way
vga.c will byteswap and not expect the UI to do it.  Alternatively make
cocoa UI properly handle the color masks and shifts, so non-native
ordering works.

I have some patches from benh in the pipeline allowing to negotiate
supported formats for shared buffers, with that in place hard-coded
assumptions about what formats the UI code is able to handle will go
away.  Guess I should rank them up in my priority list ;)

cheers,
  Gerd

  reply	other threads:[~2015-01-08  9:03 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 [this message]
2015-01-08 17:07                                 ` Programmingkid
2015-01-09  8:58                                   ` Gerd Hoffmann
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=1420707776.24470.15.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).