[Spice-devel] [common PATCH 4/8 v3] ppc: Fix colors on ppc when using QUIC

Christophe Fergeau cfergeau at redhat.com
Mon Oct 26 05:39:57 PDT 2015


On Thu, Oct 22, 2015 at 05:02:50PM +0200, Lukas Venhoda wrote:
> Fixes color order on PowerPC when using QUIC image compression.
> ---
> Changes since v2:
> Changes since v1:
>  - No changes
> ---
>  common/canvas_base.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/common/canvas_base.c b/common/canvas_base.c
> index 6f48340..31f3cef 100644
> --- a/common/canvas_base.c
> +++ b/common/canvas_base.c
> @@ -406,19 +406,19 @@ static pixman_image_t *canvas_get_quic(CanvasBase *canvas, SpiceImage *image,
>      switch (type) {
>      case QUIC_IMAGE_TYPE_RGBA:
>          as_type = QUIC_IMAGE_TYPE_RGBA;
> -        pixman_format = PIXMAN_a8r8g8b8;
> +        pixman_format = PIXMAN_LE_a8r8g8b8;
>          break;
>      case QUIC_IMAGE_TYPE_RGB32:
>      case QUIC_IMAGE_TYPE_RGB24:
>          as_type = QUIC_IMAGE_TYPE_RGB32;
> -        pixman_format = PIXMAN_x8r8g8b8;
> +        pixman_format = PIXMAN_LE_x8r8g8b8;
>          break;
>      case QUIC_IMAGE_TYPE_RGB16:
>          if (!want_original &&
>              (canvas->format == SPICE_SURFACE_FMT_32_xRGB ||
>               canvas->format == SPICE_SURFACE_FMT_32_ARGB)) {
>              as_type = QUIC_IMAGE_TYPE_RGB32;
> -            pixman_format = PIXMAN_x8r8g8b8;
> +            pixman_format = PIXMAN_LE_x8r8g8b8;
>          } else {
>              as_type = QUIC_IMAGE_TYPE_RGB16;
>              pixman_format = PIXMAN_x1r5g5b5;

This one can be tested with a windows xp guest set to  use 16bpp rather
than the default 24/32bpp. You can configure that with a right click on
the desktop/properties/settings/color quality.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20151026/b9a7ca60/attachment-0001.sig>


More information about the Spice-devel mailing list