summaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/webkitgtk-2.24.2-no-sse2.patch
blob: 5bcfb603d695648565c60709ac7837b4594da81f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
diff -rauN webkitgtk-2.24.2/Source/ThirdParty/ANGLE/src/image_util/loadimage.cpp webkitgtk-2.24.2-no-sse2-patch/Source/ThirdParty/ANGLE/src/image_util/loadimage.cpp
--- webkitgtk-2.24.2/Source/ThirdParty/ANGLE/src/image_util/loadimage.cpp	2019-02-12 12:21:03.000000000 +0100
+++ webkitgtk-2.24.2-no-sse2-patch/Source/ThirdParty/ANGLE/src/image_util/loadimage.cpp	2019-06-12 09:39:11.959999956 +0200
@@ -12,6 +12,8 @@
 #include "common/platform.h"
 #include "image_util/imageformats.h"
 
+#include <stdio.h>
+
 namespace angle
 {
 
@@ -28,6 +30,8 @@
 #if defined(ANGLE_USE_SSE)
     if (gl::supportsSSE2())
     {
+		fprintf(stderr,"SSE2 detected but Webkit compiled without SSE2 support!\n");
+
         __m128i zeroWide = _mm_setzero_si128();
 
         for (size_t z = 0; z < depth; z++)
 
diff -rauN webkitgtk-2.24.2/Source/WebCore/platform/audio/SincResampler.cpp webkitgtk-2.24.2-no-sse2-patch/Source/WebCore/platform/audio/SincResampler.cpp
--- webkitgtk-2.24.2/Source/WebCore/platform/audio/SincResampler.cpp	2019-02-12 12:21:18.000000000 +0100
+++ webkitgtk-2.24.2-no-sse2-patch/Source/WebCore/platform/audio/SincResampler.cpp	2019-06-12 09:36:23.089999961 +0200
@@ -36,6 +36,7 @@
 #include <wtf/MathExtras.h>
 
 #if CPU(X86_SSE2)
+#error No SSE2
 #include <emmintrin.h>
 #endif
 
diff -rauN webkitgtk-2.24.2/Source/WebCore/platform/audio/VectorMath.cpp webkitgtk-2.24.2-no-sse2-patch/Source/WebCore/platform/audio/VectorMath.cpp
--- webkitgtk-2.24.2/Source/WebCore/platform/audio/VectorMath.cpp	2019-02-12 12:21:18.000000000 +0100
+++ webkitgtk-2.24.2-no-sse2-patch/Source/WebCore/platform/audio/VectorMath.cpp	2019-06-12 09:09:37.576666644 +0200
@@ -33,6 +33,7 @@
 #endif
 
 #if CPU(X86_SSE2)
+#error No SSE2
 #include <emmintrin.h>
 #endif
 
diff -rauN webkitgtk-2.24.2/Source/WTF/wtf/Platform.h webkitgtk-2.24.2-no-sse2-patch/Source/WTF/wtf/Platform.h
--- webkitgtk-2.24.2/Source/WTF/wtf/Platform.h	2019-03-05 16:32:47.000000000 +0100
+++ webkitgtk-2.24.2-no-sse2-patch/Source/WTF/wtf/Platform.h	2019-06-12 09:47:05.889999955 +0200
@@ -124,7 +124,7 @@
 #define WTF_CPU_KNOWN 1
 
 #if defined(__SSE2__) || (defined(_M_IX86_FP) && _M_IX86_FP >= 2)
-#define WTF_CPU_X86_SSE2 1
+/* #define WTF_CPU_X86_SSE2 1 */
 #endif
 
 #endif
diff -rauN webkitgtk-2.24.2/Source/WTF/wtf/text/ASCIIFastPath.h webkitgtk-2.24.2-no-sse2-patch/Source/WTF/wtf/text/ASCIIFastPath.h
--- webkitgtk-2.24.2/Source/WTF/wtf/text/ASCIIFastPath.h	2019-02-12 12:21:17.000000000 +0100
+++ webkitgtk-2.24.2-no-sse2-patch/Source/WTF/wtf/text/ASCIIFastPath.h	2019-06-12 09:35:37.626666634 +0200
@@ -27,6 +27,7 @@
 #include <wtf/text/LChar.h>
 
 #if CPU(X86_SSE2)
+#error No SSE2
 #include <emmintrin.h>
 #endif