From fc2bedad667f0af8770f8a9e2d04f6630f97dab6 Mon Sep 17 00:00:00 2001 From: "gregory.hainaut@gmail.com" Date: Sun, 3 Oct 2010 10:46:04 +0000 Subject: [PATCH] GregMiscellaneous: zzogl-pg: * Add an emms because msvc is not happy. git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3866 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/zzogl-pg/opengl/targets.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/zzogl-pg/opengl/targets.cpp b/plugins/zzogl-pg/opengl/targets.cpp index f8be51afae..9c1ae6e29b 100644 --- a/plugins/zzogl-pg/opengl/targets.cpp +++ b/plugins/zzogl-pg/opengl/targets.cpp @@ -3317,6 +3317,13 @@ __forceinline void update_4pixels_sse2_bis(u32* src, u32* basepage, u32 i_msk, u _mm_store_si128((__m128i*)dst_add, final_pixels_0); // FIXME not sure it support unaligned write maybe use _mm_stream_pd // _mm_stream_si128((__m128i*)dst_add, final_pixels_0); + + // The MS compiler complains about the missing of the emms clear function... + // My guess, it uses the mmx register for the 64 bits transfer. Newer version + // of the compiler probably generates better code. -- Gregory +#ifdef _WIN32 + _mm_empty(); +#endif } template