]> git.sesse.net Git - vlc/commitdiff
Goom: deactivate MMXEXT accelerations
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 23 Jan 2011 14:46:53 +0000 (15:46 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 23 Jan 2011 14:50:20 +0000 (15:50 +0100)
Close #2052, #4039, #4390, #2796
Apparently Goom developers don't understand SIMD registers...

extras/contrib/src/Patches/goom2k4-noxmmx.patch [new file with mode: 0644]
extras/contrib/src/contrib-src.mak

diff --git a/extras/contrib/src/Patches/goom2k4-noxmmx.patch b/extras/contrib/src/Patches/goom2k4-noxmmx.patch
new file mode 100644 (file)
index 0000000..d9f07a2
--- /dev/null
@@ -0,0 +1,20 @@
+--- goom/src/plugin_info.c     2005-02-07 14:46:41.000000000 +0100
++++ goom.new/src/plugin_info.c 2011-01-23 15:37:37.524184437 +0100
+@@ -31,6 +31,7 @@
+ /*    p->methods.create_output_with_brightness = create_output_with_brightness;*/
+ #ifdef CPU_X86
++#if 0
+       if (cpuFlavour & CPU_OPTION_XMMX) {
+ #ifdef VERBOSE
+               printf ("Extented MMX detected. Using the fastest methods !\n");
+@@ -38,7 +39,8 @@
+               p->methods.draw_line = draw_line_mmx;
+               p->methods.zoom_filter = zoom_filter_xmmx;
+       }
+-      else if (cpuFlavour & CPU_OPTION_MMX) {
++#endif
++      if (cpuFlavour & CPU_OPTION_MMX) {
+ #ifdef VERBOSE
+               printf ("MMX detected. Using fast methods !\n");
+ #endif
index acc3f8bc89b004c4e8b562b4ff6d3518e5d54328..79f3bbbed2e0ca34c29821f5cf0af561fa2f7c4c 100644 (file)
@@ -1368,6 +1368,7 @@ endif
 ifdef HAVE_MACOSX
        patch -p0 < Patches/goom2k4-osx.patch
 endif
+       patch -p0 < Patches/goom2k4-noxmmx.patch
        (cd $@; rm -f configure; autoreconf -ivf)
 
 .goom2k4: goom