-/* TODO: this was copied from u_cpu_detection. It's another case of duplication
- * between gallium and core mesa, and it would be nice to get rid of that
- * duplication as well.
- */
-#if defined(PIPE_ARCH_X86)
-PIPE_ALIGN_STACK static inline bool sse2_has_daz(void)
-{
- struct {
- uint32_t pad1[7];
- uint32_t mxcsr_mask;
- uint32_t pad2[128-8];
- } PIPE_ALIGN_VAR(16) fxarea;
-
- fxarea.mxcsr_mask = 0;
-#if defined(PIPE_CC_GCC)
- __asm __volatile ("fxsave %0" : "+m" (fxarea));
-#elif defined(PIPE_CC_MSVC) || defined(PIPE_CC_ICL)
- _fxsave(&fxarea);
-#else
- fxarea.mxcsr_mask = 0;
-#endif
- return !!(fxarea.mxcsr_mask & (1 << 6));
-}
-#endif
-