Received: from eggs.gnu.org ([2001:4830:134:3::10]:34153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAgLP-0007Lk-Bn for qemu-devel@nongnu.org; Mon, 12 Jan 2015 09:51:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAgLM-0002HA-5V for qemu-devel@nongnu.org; Mon, 12 Jan 2015 09:51:51 -0500 Received: from mail-qa0-x234.google.com ([2607:f8b0:400d:c00::234]:34812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAgLM-0002H6-1A for qemu-devel@nongnu.org; Mon, 12 Jan 2015 09:51:48 -0500 Received: by mail-qa0-f52.google.com with SMTP id x12so10715536qac.11 for ; Mon, 12 Jan 2015 06:51:47 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: <1421053976.8695.13.camel@nilsson.home.kraxel.org> Date: Mon, 12 Jan 2015 09:51:44 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3154DC97-3B67-4DBF-BD02-C64E4A9591E3@gmail.com> <77FFD738-1433-4B15-8522-C1EA965B774B@gmail.com> <122C8E58-48F5-4A54-B0AF-A826492D73B6@gmail.com> <4A37A1CE-EE81-4408-A13E-8A4C7C91D498@gmail.com> <54AC45AE.5020804@redhat.com> <54AD0BDE.7020200@redhat.com> <1420641833.27381.39.camel@nilsson.home.kraxel.org> <67F5B5C0-41E1-4399-8A11-C3821394C31D@gmail.com> <1420707776.24470.15.camel@nilsson.home.kraxel.org> <07B03389-9719-42C2-A561-05347C36D947@gmail.com> <1420793910.24278.6.camel@nilsson.home.kraxel.org> <1F47539E-5ACE-4AFD-956B-266FAA04098D@gmail.com> <1421053976.8695.13.camel@nilsson.home.kraxel.org> Subject: Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Paolo Bonzini , qemu-devel qemu-devel , Peter Maydell On Jan 12, 2015, at 4:12 AM, Gerd Hoffmann wrote: > Hi, >=20 >> + /* Determines the pixel format of the frame buffer */ >> + if (surface->format =3D=3D PIXMAN_b8g8r8x8) { >> + bitmap_info =3D kCGBitmapByteOrder32Big | = kCGImageAlphaNoneSkipFirst; >> + } >=20 > That certainly goes into the right direction. Thank you. >=20 > PIXMAN_* is native endian though, so I expect this will work on the > intel macos host you are testing on but will fail on powerpc macos > hosts. Unfortunately there appears to be no way to know. The last PowerPC Macs = came out over 9 years ago. There probably isn't anyone on the list who = uses one. >=20 > I suggest to add fixed endian defines for 32bpp to > include/ui/qemu-pixman.h (there already is one for 24bpp), then use > these to avoid cluttering the cocoa code with HOST_WORDS_BIGENDIAN > #defines. >=20 > The colorspace bits look sane to me, I'm not macos x expert enough to > really justify. If someone volunteered to test any code changes on their PowerPC Mac, = then I would try this.=20=