Module Name:    src
Committed By:   macallan
Date:           Thu Feb 28 12:40:48 UTC 2013

Modified Files:
        src/external/mit/xorg/lib/pixman: Makefile

Log Message:
build support for Loongson Multimedia Instructions on evbmips


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/external/mit/xorg/lib/pixman/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/pixman/Makefile
diff -u src/external/mit/xorg/lib/pixman/Makefile:1.20 src/external/mit/xorg/lib/pixman/Makefile:1.21
--- src/external/mit/xorg/lib/pixman/Makefile:1.20	Mon Feb 11 09:26:07 2013
+++ src/external/mit/xorg/lib/pixman/Makefile	Thu Feb 28 12:40:47 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.20 2013/02/11 09:26:07 martin Exp $
+#	$NetBSD: Makefile,v 1.21 2013/02/28 12:40:47 macallan Exp $
 
 NOLINT=	1	# defined
 
@@ -76,6 +76,14 @@ COPTS.pixman-mmx.c=	-mcpu=iwmmxt
 CPPFLAGS+=	-DUSE_ARM_IWMMXT
 .endif
 
+.if ${MACHINE} == "evbmips"
+# Loongson MMI
+SRCS+=		pixman-mmx.c
+CPPFLAGS+=	-DUSE_LOONGSON_MMI
+# SIMD instructions use floatpoint registers so we need to enable their use
+COPTS.pixman-mmx.c=	-march=loongson2f -mhard-float
+.endif
+
 INCS=	pixman.h pixman-version.h
 INCSDIR=${X11INCDIR}/pixman-1
 

Reply via email to