summaryrefslogtreecommitdiff
path: root/xc/programs
diff options
context:
space:
mode:
authordawes <dawes>2000-12-05 20:48:39 +0000
committerdawes <dawes>2000-12-05 20:48:39 +0000
commit273a4cd129899f7f84bcbd2a1298feb50c6c723a (patch)
treefc0dafc11e01ef29f07bbcc1a3c258ca8635009b /xc/programs
parent0286e73acf3f1d06a5a5e6881718b050d69d65f7 (diff)
Finish off XFree86 4.0.1h mergeX_4_0_1h-20001205-merge
Diffstat (limited to 'xc/programs')
-rw-r--r--xc/programs/Xserver/hw/xfree86/drivers/tdfx/tdfx_video.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/drivers/tdfx/tdfx_video.c b/xc/programs/Xserver/hw/xfree86/drivers/tdfx/tdfx_video.c
index 0bd954516..a7e3c71cf 100644
--- a/xc/programs/Xserver/hw/xfree86/drivers/tdfx/tdfx_video.c
+++ b/xc/programs/Xserver/hw/xfree86/drivers/tdfx/tdfx_video.c
@@ -1,3 +1,5 @@
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/tdfx/tdfx_video.c,v 1.2 2000/12/02 15:30:57 tsi Exp $ */
+
/* Adapted from ../mga/mga_video.c */
#include "xf86.h"
@@ -334,7 +336,7 @@ YUVPlanarToPacked (ScrnInfoPtr pScrn,
/* psrc points to the base of the Y plane, move out to src_x, src_y */
psrc += src_x + src_y * width;
- pdst = pTDFX->MMIOBase[0] + YUV_Y_BASE;
+ pdst = (char *)pTDFX->MMIOBase[0] + YUV_Y_BASE;
for (y = 0; y < height; y++)
{
memcpy (pdst, psrc, src_w);
@@ -349,7 +351,7 @@ YUVPlanarToPacked (ScrnInfoPtr pScrn,
* different and we handle it in the the way we pick the source
* format later on. */
- pdst = pTDFX->MMIOBase[0] + YUV_V_BASE;
+ pdst = (char *)pTDFX->MMIOBase[0] + YUV_V_BASE;
psrc = (char*)buf + width * height;
/* psrc now points to the base of the V plane, move out to src_x, src_y */
psrc += (src_x >> 1) + (src_y >> 1) * (width >> 1);
@@ -359,7 +361,7 @@ YUVPlanarToPacked (ScrnInfoPtr pScrn,
psrc += width >> 1;
pdst += 1024;
}
- pdst = pTDFX->MMIOBase[0] + YUV_U_BASE;
+ pdst = (char *)pTDFX->MMIOBase[0] + YUV_U_BASE;
psrc = (char*)buf + width * height + (width >> 1) * (height >> 1);
/* psrc now points to the base of the U plane, move out to src_x, src_y */
psrc += (src_x >> 1) + (src_y >> 1) * (width >> 1);
@@ -413,7 +415,7 @@ TDFXPutImage(
}
YUVPlanarToPacked (pScrn, src_x, src_y, src_h, src_w,
- id, buf, width, height,
+ id, (char *)buf, width, height,
fbarea);
/* Don't know what executed last so we need to send a NOP */
TDFXSendNOP(pScrn);