SF.net SVN: gar:[22682] csw/mgar/pkg/mplayer/trunk/files/ 0004-test-sse-support.patch
pfelecan at users.sourceforge.net
pfelecan at users.sourceforge.net
Thu Dec 12 18:28:43 CET 2013
Revision: 22682
http://sourceforge.net/p/gar/code/22682
Author: pfelecan
Date: 2013-12-12 17:28:42 +0000 (Thu, 12 Dec 2013)
Log Message:
-----------
fix the patch for SSE detection
Modified Paths:
--------------
csw/mgar/pkg/mplayer/trunk/files/0004-test-sse-support.patch
Modified: csw/mgar/pkg/mplayer/trunk/files/0004-test-sse-support.patch
===================================================================
--- csw/mgar/pkg/mplayer/trunk/files/0004-test-sse-support.patch 2013-12-12 17:11:02 UTC (rev 22681)
+++ csw/mgar/pkg/mplayer/trunk/files/0004-test-sse-support.patch 2013-12-12 17:28:42 UTC (rev 22682)
@@ -1,6 +1,6 @@
-From bafb52e605898a5afe86c5a7b007cd534c76ef1b Mon Sep 17 00:00:00 2001
+From ff6871e3463c9242151c4684b1ee0c59d510c0fb Mon Sep 17 00:00:00 2001
From: Peter Felecan <pfelecan at opencsw.org>
-Date: Wed, 11 Dec 2013 10:25:19 +0100
+Date: Wed, 11 Dec 2013 14:24:15 +0100
Subject: [PATCH] test sse support
---
@@ -8,7 +8,7 @@
1 file changed, 60 insertions(+), 1 deletion(-)
diff --git a/cpudetect.c b/cpudetect.c
-index e643bdc..d2fd844 100644
+index e643bdc..e30ea2d 100644
--- a/cpudetect.c
+++ b/cpudetect.c
@@ -46,6 +46,10 @@ CpuCaps gCpuCaps;
@@ -22,10 +22,10 @@
#endif
/* Thanks to the FreeBSD project for some of this cpuid code, and
-@@ -209,7 +213,62 @@ static void check_os_katmai_support( void )
- * safe to go ahead and hook out the SSE code throughout Mesa.
- */
- mp_msg(MSGT_CPUDETECT,MSGL_V, "Tests of OS support for SSE %s\n", gCpuCaps.hasSSE ? "passed." : "failed!" );
+@@ -216,7 +220,62 @@ static void check_os_katmai_support( void )
+ mp_msg(MSGT_CPUDETECT,MSGL_WARN, "Cannot test OS support for SSE, disabling to be safe.\n" );
+ gCpuCaps.hasSSE=0;
+ #endif /* _POSIX_SOURCE */
-#else
+#elif defined(sun)
+ /* determine if SSE is available for the current CPU running
@@ -83,9 +83,9 @@
+ }
+ }
+#else /* : defined(sun) */
- /* We can't use POSIX signal handling to test the availability of
- * SSE, so we disable it by default.
+ /* Do nothing on other platforms for now.
*/
+ mp_msg(MSGT_CPUDETECT,MSGL_WARN, "Cannot test OS support for SSE, leaving disabled.\n" );
--
1.8.4.1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list