diff options
author | zuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-12 02:34:33 +0000 |
---|---|---|
committer | zuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-12 02:34:33 +0000 |
commit | 52b2e49c2901ff4ca034aa3e64dabf799e29be7f (patch) | |
tree | 43e5d976709223f8876b9238f7f316e047e47e26 | |
parent | 11cd52cad4490cc57d9e3fc027f982f1c90cef81 (diff) | |
download | mpv-52b2e49c2901ff4ca034aa3e64dabf799e29be7f.tar.bz2 mpv-52b2e49c2901ff4ca034aa3e64dabf799e29be7f.tar.xz |
Make sure that sfence is used after any non temporal stores.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30287 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libswscale/x86/yuv2rgb_template.c | 4 |
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, |