diff options
author | Zuxy Meng | 2010-01-12 02:34:33 +0000 |
---|---|---|
committer | Zuxy Meng | 2010-01-12 02:34:33 +0000 |
commit | 845e37e770d7aa3316f368db167eb299697e7f84 (patch) | |
tree | d1213650bd8d637206c71259e9ac171978003258 /libswscale/x86 | |
parent | 6b7c7703f4c762d0419dfb0e186fa21cec78e4bc (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')
-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, |