summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2012-11-28 10:03:37 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2012-11-28 10:03:37 +0000
commit8780de55383f4775e9107ce28c1796616e2974ce (patch)
tree86d17d5c7863b4338f6e88e84229f3db8bc72b17 /driver
parent9ec84b98563336ee3896364730dbc0b8c230007b (diff)
Fix an EXA-related big endian issue, introduced in 6.14.5 with the support
of accelerated solid pictures on r1xx, r2xx and r3xx. Problem reported by landry@, ok matthieu@
Diffstat (limited to 'driver')
-rw-r--r--driver/xf86-video-ati/src/radeon_exa_render.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/driver/xf86-video-ati/src/radeon_exa_render.c b/driver/xf86-video-ati/src/radeon_exa_render.c
index c42ae2879..077e670a9 100644
--- a/driver/xf86-video-ati/src/radeon_exa_render.c
+++ b/driver/xf86-video-ati/src/radeon_exa_render.c
@@ -649,7 +649,7 @@ static Bool FUNC_NAME(R100PrepareComposite)(int op,
CHECK_OFFSET(pDst, 0x0f, "destination");
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");
}
@@ -661,7 +661,7 @@ static Bool FUNC_NAME(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);
@@ -1025,7 +1025,7 @@ static Bool FUNC_NAME(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");
}
@@ -1034,7 +1034,7 @@ static Bool FUNC_NAME(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);
@@ -1533,7 +1533,7 @@ static Bool FUNC_NAME(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");
}
@@ -1542,7 +1542,7 @@ static Bool FUNC_NAME(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);