From dd47022acea1fe5370eaacc443f82d8ad1a2f3da Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Thu, 20 Feb 2014 17:56:20 -0500 Subject: [PATCH] evergreen/exa: fix solid color on ppc. Signed-off-by: Jerome Glisse --- src/evergreen_exa.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/evergreen_exa.c b/src/evergreen_exa.c index d788bfc..747aa63 100644 --- a/src/evergreen_exa.c +++ b/src/evergreen_exa.c @@ -1261,10 +1261,17 @@ static void EVERGREENSetSolidConsts(ScrnInfoPtr pScrn, float *buf, int format, u } } +#if X_BYTE_ORDER == X_BIG_ENDIAN + buf[0] = pix_a; + buf[1] = pix_b; + buf[2] = pix_g; + buf[3] = pix_r; +#else buf[0] = pix_r; buf[1] = pix_g; buf[2] = pix_b; buf[3] = pix_a; +#endif } static Bool EVERGREENPrepareComposite(int op, PicturePtr pSrcPicture, -- 1.8.3.1