[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: |
Peter Maydell |
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 15:04:14 +0000 |
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".]
Also, this should almost certainly be a
switch (surface->format)
and bail out on things we can't handle.
thanks
-- PMM
- Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., (continued)
- Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Paolo Bonzini, 2015/01/07
- Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Gerd Hoffmann, 2015/01/07
- Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Programmingkid, 2015/01/07
- Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Gerd Hoffmann, 2015/01/08
- Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Programmingkid, 2015/01/08
- Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Gerd Hoffmann, 2015/01/09
- Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Programmingkid, 2015/01/09
- [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Programmingkid, 2015/01/09
- Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Gerd Hoffmann, 2015/01/12
- Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Programmingkid, 2015/01/12
- Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Programmingkid, 2015/01/12
- Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Paolo Bonzini, 2015/01/12
- Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Peter Maydell, 2015/01/12
- Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Paolo Bonzini, 2015/01/12
- Re: [Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Programmingkid, 2015/01/12
- Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Programmingkid, 2015/01/07
- Message not available
- Message not available
- Message not available
- Message not available
- Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Programmingkid, 2015/01/06
- Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue., Paolo Bonzini, 2015/01/07