[vlc-commits] Goom: deactivate MMXEXT accelerations

Jean-Baptiste Kempf git at videolan.org
Sun Jan 23 15:50:26 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jan 23 15:46:53 2011 +0100| [94d12698455b55ae02072878fcbb76be0a25cdf2] | committer: Jean-Baptiste Kempf

Goom: deactivate MMXEXT accelerations

Close #2052, #4039, #4390, #2796
Apparently Goom developers don't understand SIMD registers...

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=94d12698455b55ae02072878fcbb76be0a25cdf2
---

 extras/contrib/src/Patches/goom2k4-noxmmx.patch |   20 ++++++++++++++++++++
 extras/contrib/src/contrib-src.mak              |    1 +
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/extras/contrib/src/Patches/goom2k4-noxmmx.patch b/extras/contrib/src/Patches/goom2k4-noxmmx.patch
new file mode 100644
index 0000000..d9f07a2
--- /dev/null
+++ b/extras/contrib/src/Patches/goom2k4-noxmmx.patch
@@ -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
diff --git a/extras/contrib/src/contrib-src.mak b/extras/contrib/src/contrib-src.mak
index acc3f8b..79f3bbb 100644
--- a/extras/contrib/src/contrib-src.mak
+++ b/extras/contrib/src/contrib-src.mak
@@ -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



More information about the vlc-commits mailing list