util: (trivial) fix compile error with MSVC on x86
authorRoland Scheidegger <sroland@vmware.com>
Thu, 8 Aug 2013 17:08:57 +0000 (19:08 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 8 Aug 2013 17:08:57 +0000 (19:08 +0200)
src/gallium/auxiliary/util/u_cpu_detect.c

index c58a3dd07fce5270f592681cb75da216d13fa38b..856701293939ec3b4994b4fdfdf68ef04a915b67 100644 (file)
@@ -246,7 +246,7 @@ static INLINE boolean sse2_has_daz(void)
 #if (defined(PIPE_CC_GCC) || defined(PIPE_CC_SUNPRO))
    asm volatile ("fxsave %0" :: "m" (fxarea));
 #elif (defined(PIPE_CC_MSVC) || defined(PIPE_CC_ICL))
-   _fxsave(fxarea);
+   _fxsave(&fxarea);
 #endif
    return !!(fxarea.mxcsr_mask & (1 << 6));
 }