webkitgtk-2.24.2-no-sse2.patch 2.6 KB

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