]> git.sesse.net Git - vlc/commitdiff
Use emms after I420_UYVY because the OpenGL vout uses floats in the same thread.
authorEric Petit <titer@videolan.org>
Sun, 12 Feb 2006 21:22:20 +0000 (21:22 +0000)
committerEric Petit <titer@videolan.org>
Sun, 12 Feb 2006 21:22:20 +0000 (21:22 +0000)
Re-enabled i420_yuy2_mmx on Darwin/x86.

configure.ac
modules/video_chroma/i420_yuy2.c

index 5fe50690b9bda5c378a30ecf4535ebb424d20d9a..f043d019027e3307ff17a719b405d4ce59512f8a 100644 (file)
@@ -1107,7 +1107,7 @@ SSE_MODULES=""
 ALTIVEC_MODULES="memcpyaltivec i420_yuy2_altivec"
 #ALTIVEC_MODULES="${ALTIVEC_MODULES} idctaltivec motionaltivec"
 
-if test "${enable_gprof}" != "yes" -a "${SYS}" != "darwin"
+if test "${enable_gprof}" != "yes"
 then
   MMX_MODULES="${MMX_MODULES} i420_yuy2_mmx"
 fi
index 37c2fd879090593adab0db03e9873f2d42c6ac7c..507a9717794df5497784edab16e5766143c7ea1e 100644 (file)
@@ -390,6 +390,10 @@ static void I420_UYVY( vout_thread_t *p_vout, picture_t *p_source,
         p_line1 += i_dest_margin;
         p_line2 += i_dest_margin;
     }
+
+#if defined (MODULE_NAME_IS_i420_yuy2_mmx)
+    __asm__ __volatile__("emms" :: );
+#endif
 }
 
 /*****************************************************************************