Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/xorg/lib/pixman build support for Loongson Mult...



details:   https://anonhg.NetBSD.org/src/rev/6120c2f73223
branches:  trunk
changeset: 785161:6120c2f73223
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Feb 28 12:40:47 2013 +0000

description:
build support for Loongson Multimedia Instructions on evbmips

diffstat:

 external/mit/xorg/lib/pixman/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r b6899232135c -r 6120c2f73223 external/mit/xorg/lib/pixman/Makefile
--- a/external/mit/xorg/lib/pixman/Makefile     Thu Feb 28 03:04:12 2013 +0000
+++ b/external/mit/xorg/lib/pixman/Makefile     Thu Feb 28 12:40:47 2013 +0000
@@ -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 @@
 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
 



Home | Main Index | Thread Index | Old Index