[Spice-devel] [common PATCH 7/9 v4] ppc: Fix colors on ppc when using LZ4

Lukas Venhoda lvenhoda at redhat.com
Wed Nov 25 08:14:33 PST 2015


Fixes color order on PowerPC when using LZ4 image compression.
---
Changes since v3:
Changes since v2:
 - No changes

Changes since v1:
 - New commit
---
 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 efaab99..736eacb 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -545,15 +545,15 @@ static pixman_image_t *canvas_get_lz4(CanvasBase *canvas, SpiceImage *image)
             stride_encoded *= 2;
             break;
         case SPICE_BITMAP_FMT_24BIT:
-            format = PIXMAN_r8g8b8;
+            format = PIXMAN_LE_r8g8b8;
             stride_encoded *= 3;
             break;
         case SPICE_BITMAP_FMT_32BIT:
-            format = PIXMAN_x8r8g8b8;
+            format = PIXMAN_LE_x8r8g8b8;
             stride_encoded *= 4;
             break;
         case SPICE_BITMAP_FMT_RGBA:
-            format = PIXMAN_a8r8g8b8;
+            format = PIXMAN_LE_a8r8g8b8;
             stride_encoded *= 4;
             break;
         default:
--
2.5.0



More information about the Spice-devel mailing list