aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlok Hota <[email protected]>2018-09-12 11:53:05 -0500
committerAlok Hota <[email protected]>2019-04-30 19:48:12 +0000
commite7f381e9ca2b435481a86e4fb45ec13a12ce6d77 (patch)
tree1afeabaf867c9d78e3e4f7558243c0cebf9bda79
parentae436203d90b45fe82aa07f4e4c9d0c8be6a7b13 (diff)
swr/rast: add guards for cpuid on Linux
Reviewed-by: Bruce Cherniak <[email protected]>
-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
{