[xserver-commit] xserver/hw/kdrive/ati ati_draw.c,1.10,1.11 radeon_composite.c,1.5,1.6

Eric Anholt xserver-commit@pdx.freedesktop.org
Thu, 08 Jan 2004 12:18:15 -0800


Committed by: anholt

Update of /cvs/xserver/xserver/hw/kdrive/ati
In directory pdx:/home/anholt/xserver/hw/kdrive/ati

Modified Files:
	ati_draw.c radeon_composite.c 
Log Message:
Compile fixes for non-DRI case and for non-C99 compiler.


Index: ati_draw.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/kdrive/ati/ati_draw.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- ati_draw.c	8 Jan 2004 08:16:24 -0000	1.10
+++ ati_draw.c	8 Jan 2004 20:18:13 -0000	1.11
@@ -378,6 +378,8 @@
 	ADVANCE_RING();
 }
 
+#endif /* USE_DRI */
+
 static Bool
 ATIUploadToScreen(PixmapPtr pDst, char *src, int src_pitch)
 {
@@ -424,9 +426,6 @@
 	return ATIUploadToScreen(pDst, pSrc->devPrivate.ptr, pSrc->devKind);
 }
 
-
-#endif /* USE_DRI */
-
 static Bool
 R128GetDatatypePict(CARD32 format, CARD32 *type)
 {

Index: radeon_composite.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/kdrive/ati/radeon_composite.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- radeon_composite.c	7 Jan 2004 02:30:29 -0000	1.5
+++ radeon_composite.c	8 Jan 2004 20:18:13 -0000	1.6
@@ -34,8 +34,8 @@
 #include "ati_sarea.h"
 
 #define TAG(x)		x##DMA
-#define LOCALS		(void)atic; \
-			RING_LOCALS
+#define LOCALS		RING_LOCALS; \
+			(void)atic;
 #define BEGIN(x)	BEGIN_RING(x * 2)
 #define OUT_REG(reg, val) OUT_RING_REG(reg, val)
 #define END()		ADVANCE_RING()
@@ -322,8 +322,8 @@
 {
 	ATIScreenInfo *atis = accel_atis;
 	ATICardInfo *atic = atis->atic;
-	LOCALS;
 	struct blend_vertex vtx[4];
+	LOCALS;
 
 	/*ErrorF("RadeonComposite %d %d %d %d %d %d\n", srcX, srcY, maskX, maskY,
 	    dstX, dstY, w, h);*/