qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format f


From: Programmingkid
Subject: Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.
Date: Mon, 12 Jan 2015 11:12:07 -0500

On Jan 12, 2015, at 10:04 AM, Peter Maydell wrote:

> On 12 January 2015 at 14:51, Programmingkid <address@hidden> wrote:
>> On Jan 12, 2015, at 4:12 AM, Gerd Hoffmann wrote:
>>> 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.
>>> 
>>> 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.
> 
> It generally works the other way around -- if the documentation for
> something says X, then you write the code assuming that, and test it
> on the platforms you have access to, and trust that the others will
> work anyway. You don't write code that the documentation says won't
> work portably just because it happens to work on the platforms you
> have access to...
> [In this case "X" is "pixman formats are host-endian".]

Interesting idea. Will try it this way in future patches. 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]