aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/isa.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/isa.hpp b/src/gallium/drivers/swr/rasterizer/common/isa.hpp
index aea5740bb66..41af0055f1e 100644
--- a/src/gallium/drivers/swr/rasterizer/common/isa.hpp
+++ b/src/gallium/drivers/swr/rasterizer/common/isa.hpp
@@ -38,8 +38,10 @@
#include <intrin.h>
#else
#include <string.h>
+#if !defined(__cpuid)
#include <cpuid.h>
#endif
+#endif
class InstructionSet
{