From 9ab0f616edf824681f3054437967fcb1a4ff75a7 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Wed, 28 Nov 2012 11:09:07 +0100 Subject: [PATCH] EXA: Fix acceleration of solid pictures on big endian for R1xx/R2xx/R3xx --- src/radeon_exa_render.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c index c673f2c..95fa153 100644 --- a/src/radeon_exa_render.c +++ b/src/radeon_exa_render.c @@ -604,7 +604,7 @@ static Bool R100PrepareComposite(int op, colorpitch |= RADEON_COLOR_TILE_ENABLE; if (!pSrc) { - pSrc = RADEONSolidPixmap(pScreen, cpu_to_le32(pSrcPicture->pSourcePict->solidFill.color)); + pSrc = RADEONSolidPixmap(pScreen, pSrcPicture->pSourcePict->solidFill.color); if (!pSrc) RADEON_FALLBACK("Failed to create solid scratch pixmap\n"); } @@ -616,7 +616,7 @@ static Bool R100PrepareComposite(int op, return FALSE; if (pMaskPicture && !pMask) { - pMask = RADEONSolidPixmap(pScreen, cpu_to_le32(pMaskPicture->pSourcePict->solidFill.color)); + pMask = RADEONSolidPixmap(pScreen, pMaskPicture->pSourcePict->solidFill.color); if (!pMask) { if (!pSrcPicture->pDrawable) pScreen->DestroyPixmap(pSrc); @@ -969,7 +969,7 @@ static Bool R200PrepareComposite(int op, PicturePtr pSrcPicture, RADEON_FALLBACK(("Bad destination pitch 0x%x\n", (int)dst_pitch)); if (!pSrc) { - pSrc = RADEONSolidPixmap(pScreen, cpu_to_le32(pSrcPicture->pSourcePict->solidFill.color)); + pSrc = RADEONSolidPixmap(pScreen, pSrcPicture->pSourcePict->solidFill.color); if (!pSrc) RADEON_FALLBACK("Failed to create solid scratch pixmap\n"); } @@ -978,7 +978,7 @@ static Bool R200PrepareComposite(int op, PicturePtr pSrcPicture, return FALSE; if (pMaskPicture && !pMask) { - pMask = RADEONSolidPixmap(pScreen, cpu_to_le32(pMaskPicture->pSourcePict->solidFill.color)); + pMask = RADEONSolidPixmap(pScreen, pMaskPicture->pSourcePict->solidFill.color); if (!pMask) { if (!pSrcPicture->pDrawable) pScreen->DestroyPixmap(pSrc); @@ -1461,7 +1461,7 @@ static Bool R300PrepareComposite(int op, PicturePtr pSrcPicture, RADEON_FALLBACK(("Bad destination pitch 0x%x\n", (int)dst_pitch)); if (!pSrc) { - pSrc = RADEONSolidPixmap(pScreen, cpu_to_le32(pSrcPicture->pSourcePict->solidFill.color)); + pSrc = RADEONSolidPixmap(pScreen, pSrcPicture->pSourcePict->solidFill.color); if (!pSrc) RADEON_FALLBACK("Failed to create solid scratch pixmap\n"); } @@ -1470,7 +1470,7 @@ static Bool R300PrepareComposite(int op, PicturePtr pSrcPicture, return FALSE; if (pMaskPicture && !pMask) { - pMask = RADEONSolidPixmap(pScreen, cpu_to_le32(pMaskPicture->pSourcePict->solidFill.color)); + pMask = RADEONSolidPixmap(pScreen, pMaskPicture->pSourcePict->solidFill.color); if (!pMask) { if (!pSrcPicture->pDrawable) pScreen->DestroyPixmap(pSrc); -- 1.7.6