[PATCH] wined3d: Implement wined3d_pause for MSVC.

Thomas Faber thomas.faber at reactos.org
Mon May 21 12:08:44 CDT 2018


Signed-off-by: Thomas Faber <thomas.faber at reactos.org>
---
  dlls/wined3d/wined3d_private.h | 6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 3e344a5f0f3..976ab6ffd3f 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -367,8 +367,12 @@ static inline unsigned int 
wined3d_popcount(unsigned int x)

  static inline void wined3d_pause(void)
  {
-#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
+#if defined(__i386__) || defined(__x86_64__)
+#if defined(__GNUC__)
      __asm__ __volatile__( "rep;nop" : : : "memory" );
+#elif defined(_MSC_VER)
+    _mm_pause();
+#endif
  #endif
  }

-- 
2.16.1.windows.2




More information about the wine-devel mailing list