summaryrefslogtreecommitdiff
path: root/libswscale/x86/yuv2rgb_template.c
diff options
context:
space:
mode:
authorZuxy Meng <zuxy.meng@gmail.com>2010-01-12 02:34:33 +0000
committerZuxy Meng <zuxy.meng@gmail.com>2010-01-12 02:34:33 +0000
commit845e37e770d7aa3316f368db167eb299697e7f84 (patch)
treed1213650bd8d637206c71259e9ac171978003258 /libswscale/x86/yuv2rgb_template.c
parent6b7c7703f4c762d0419dfb0e186fa21cec78e4bc (diff)
Make sure that sfence is used after any non temporal stores.
Originally committed as revision 30287 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/x86/yuv2rgb_template.c')
-rw-r--r--libswscale/x86/yuv2rgb_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/x86/yuv2rgb_template.c b/libswscale/x86/yuv2rgb_template.c
index b6a1c3dca9..c8d7ca5677 100644
--- a/libswscale/x86/yuv2rgb_template.c
+++ b/libswscale/x86/yuv2rgb_template.c
@@ -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,