From ae45938cea9c5b082ef37fa1a7aa4604f6d80af2 Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Tue, 31 Mar 2009 20:10:00 +0000 Subject: Keep the code from turning off the FPU - cures excessive traps that made acceleration unusable. Approved by: flz Obtained from: NetBSD (basic approach) --- x11-drivers/xf86-video-sunffb/Makefile | 1 + .../xf86-video-sunffb/files/patch-VISmoveImage.s | 26 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 x11-drivers/xf86-video-sunffb/files/patch-VISmoveImage.s (limited to 'x11-drivers/xf86-video-sunffb') 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 -- cgit v1.2.3