changeset 30245:bef93e623403

Make sure that sfence is used after any non temporal stores.
author zuxy
date Tue, 12 Jan 2010 02:34:33 +0000
parents 5ba6784f6574
children f394b0820fda
files libswscale/x86/yuv2rgb_template.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/x86/yuv2rgb_template.c	Mon Jan 11 21:06:00 2010 +0000
+++ b/libswscale/x86/yuv2rgb_template.c	Tue Jan 12 02:34:33 2010 +0000
@@ -168,7 +168,7 @@
         : "r" (pu - index), "r" (pv - index), "r"(&c->redDither), "r" (py - 2*index) \
         ); \
     } \
-    __asm__ volatile (EMMS); \
+    __asm__ volatile (SFENCE"\n\t"EMMS); \
     return srcSliceH; \
 
 #define YUV2RGB_OPERANDS_ALPHA \
@@ -176,7 +176,7 @@
         : "r" (pu - index), "r" (pv - index), "r"(&c->redDither), "r" (py - 2*index), "r" (pa - 2*index) \
         ); \
     } \
-    __asm__ volatile (EMMS); \
+    __asm__ volatile (SFENCE"\n\t"EMMS); \
     return srcSliceH; \
 
 static inline int RENAME(yuv420_rgb16)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,