From 6687be4b13566e9371f809408afed20f82e803bb Mon Sep 17 00:00:00 2001 From: "yuzhuohuang@qq.com" Date: Sat, 13 Oct 2012 15:40:53 +0800 Subject: [PATCH] Fixed(?) _mm_empty --- src/subtitles/Rasterizer.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/subtitles/Rasterizer.cpp b/src/subtitles/Rasterizer.cpp index 8c1051d..a44ff4f 100644 --- a/src/subtitles/Rasterizer.cpp +++ b/src/subtitles/Rasterizer.cpp @@ -1953,8 +1953,7 @@ void Rasterizer::Draw(XyBitmap* bitmap, SharedPtrOverlay overlay, const CRect& c break; } // Remember to EMMS! - // Rendering fails in funny ways if we don't do this. - _mm_empty(); + // Rendering fails in funny ways if we don't do this. return; } @@ -2016,8 +2015,7 @@ void Rasterizer::FillSolidRect(SubPicDesc& spd, int x, int y, int nWidth, int nH AlphaBltC(dst_A, argb>>24, 0, nHeight, nWidth, spd.pitch); } break; - } - _mm_empty(); + } } @@ -2027,7 +2025,7 @@ void Rasterizer::FillSolidRect(SubPicDesc& spd, int x, int y, int nWidth, int nH void Overlay::_DoFillAlphaMash(byte* outputAlphaMask, const byte* pBody, const byte* pBorder, int x, int y, int w, int h, const byte* pAlphaMask, int pitch, DWORD color_alpha ) -{ +{ if (g_cpuid.m_flags & CCpuID::sse2) { pBody = pBody!=NULL ? pBody + y*mOverlayPitch + x: NULL; @@ -2324,6 +2322,7 @@ void Overlay::_DoFillAlphaMash(byte* outputAlphaMask, const byte* pBody, const b dst += mOverlayPitch; } } + _mm_empty(); } else { -- 2.11.4.GIT