qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Big Endian qemu_pixelformat_from_pixman and qemu_defaul


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] Big Endian qemu_pixelformat_from_pixman and qemu_default_pixman_format
Date: Mon, 15 Sep 2014 08:33:12 +0200

On So, 2014-09-14 at 22:08 +0300, Valentin Manea wrote:
> Hi Gerd,
> 
>   I'm working on improving the OpenRISC support for QEMU and recently I got in
> one problem with qemu_pixelformat_from_pixman(). It seems quite recently the
> ui/console.c code has started using it for big endian as well but the new 
> change
> breaks my existing framebuffer patches.

>   I was wondering if there is any reason not to return PIXMAN_b8g8r8x8 also 
> for
> big endian? In the worst case scenario it would be compatible to the previous 
> code.

It's a bug indeed (and it is the one which breaks ppc guest display on
x86_64 hosts with SDL).

>   If you are OK, I would like to submit this patch:
> diff --git a/ui/qemu-pixman.c b/ui/qemu-pixman.c
> index 30c7fdd..1f6fea5 100644
> --- a/ui/qemu-pixman.c
> +++ b/ui/qemu-pixman.c
> @@ -80,7 +80,7 @@ pixman_format_code_t qemu_default_pixman_format(int bpp, 
> bool
> native_endian)
>          case 24:
>              return PIXMAN_b8g8r8;
>          case 32:
> -            return PIXMAN_b8g8r8a8;
> +            return PIXMAN_b8g8r8x8;
>          break;
>          }
>      }

Fix is correct.

cheers,
  Gerd





reply via email to

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