aboutsummaryrefslogtreecommitdiff
path: root/x11-drivers/xf86-video-sunffb
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2009-03-31 20:10:00 +0000
committerMarius Strobl <marius@FreeBSD.org>2009-03-31 20:10:00 +0000
commitae45938cea9c5b082ef37fa1a7aa4604f6d80af2 (patch)
treea8af9def7f3b33c9491cddfbba59ad97e2cea8c9 /x11-drivers/xf86-video-sunffb
parent1381d07d83630ddb481a09605e7fd8b63cd3ea61 (diff)
downloadports-ae45938cea9c5b082ef37fa1a7aa4604f6d80af2.tar.gz
ports-ae45938cea9c5b082ef37fa1a7aa4604f6d80af2.zip
Keep the code from turning off the FPU - cures excessive traps that
made acceleration unusable. Approved by: flz Obtained from: NetBSD (basic approach)
Notes
Notes: svn path=/head/; revision=231407
Diffstat (limited to 'x11-drivers/xf86-video-sunffb')
-rw-r--r--x11-drivers/xf86-video-sunffb/Makefile1
-rw-r--r--x11-drivers/xf86-video-sunffb/files/patch-VISmoveImage.s26
2 files changed, 27 insertions, 0 deletions
diff --git a/x11-drivers/xf86-video-sunffb/Makefile b/x11-drivers/xf86-video-sunffb/Makefile
index 9c91c51d7ae1..3ea3dcc88abf 100644
--- a/x11-drivers/xf86-video-sunffb/Makefile
+++ b/x11-drivers/xf86-video-sunffb/Makefile
@@ -7,6 +7,7 @@
PORTNAME= xf86-video-sunffb
PORTVERSION= 1.2.0
+PORTREVISION= 1
CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org
diff --git a/x11-drivers/xf86-video-sunffb/files/patch-VISmoveImage.s b/x11-drivers/xf86-video-sunffb/files/patch-VISmoveImage.s
new file mode 100644
index 000000000000..f58ddad51523
--- /dev/null
+++ b/x11-drivers/xf86-video-sunffb/files/patch-VISmoveImage.s
@@ -0,0 +1,26 @@
+--- src/VISmoveImage.s.orig 2008-08-15 19:49:00.000000000 +0000
++++ src/VISmoveImage.s 2009-03-29 14:08:42.000000000 +0000
+@@ -779,7 +779,11 @@
+ sub %tmp3, %rightw, %curw
+
+ return: return %i7+8
++#if defined(__FreeBSD__)
++ nop
++#else
+ wr %g0, 0, %fprs
++#endif
+
+ narrowst:
+ and %leftw, 0x38, %tmp1
+@@ -2174,7 +2178,11 @@
+ sub %curw, %rightw, %curw
+
+ rreturn:return %i7+8
++#if defined(__FreeBSD__)
++ nop
++#else
+ wr %g0, 0, %fprs
++#endif
+
+ narrowstr:
+ cmp %rightw, 64