pkgsrc-WIP-changes archive

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

chromium-new: Add worksround for SSSE3 detection on NetBSD



Module Name:	pkgsrc-wip
Committed By:	Ryo ONODERA <ryoon%NetBSD.org@localhost>
Pushed By:	ryoon
Date:		Sat Jul 23 14:00:43 2016 +0900
Changeset:	479ba37282dafe7240285bd3165d82906f4b3ba8

Added Files:
	chromium-new/patches/patch-third__party_skia_src_opts_opts__check__x86.cpp

Log Message:
chromium-new: Add worksround for SSSE3 detection on NetBSD

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=479ba37282dafe7240285bd3165d82906f4b3ba8

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

diffstat:
 ...tch-third__party_skia_src_opts_opts__check__x86.cpp | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diffs:
diff --git a/chromium-new/patches/patch-third__party_skia_src_opts_opts__check__x86.cpp b/chromium-new/patches/patch-third__party_skia_src_opts_opts__check__x86.cpp
new file mode 100644
index 0000000..26b6dc4
--- /dev/null
+++ b/chromium-new/patches/patch-third__party_skia_src_opts_opts__check__x86.cpp
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- third_party/skia/src/opts/opts_check_x86.cpp.orig	2016-06-24 01:04:04.000000000 +0000
++++ third_party/skia/src/opts/opts_check_x86.cpp
+@@ -110,6 +110,13 @@ static inline bool supports_simd(int min
+          * instructions. So for that particular case we disable our SSSE3 options.
+          */
+         return false;
++#elif (__NetBSD__)
++      /* NetBSD/amd64 7.99.34 is configured for nocona and nocona does not
++         support SSSE3. However CPU itself supports SSSE3 and gSIMDLevel()
++         returns SSSE3 is ready. This inconsistency causes runtime error,
++         sk_throw(), in S32_*_SSSE3()
++         in third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp . */
++        return false;
+ #else
+         return minLevel <= *gSIMDLevel.get(get_SIMD_level);
+ #endif


Home | Main Index | Thread Index | Old Index