swr/rast: add guards for cpuid on Linux
authorAlok Hota <alok.hota@intel.com>
Wed, 12 Sep 2018 16:53:05 +0000 (11:53 -0500)
committerAlok Hota <alok.hota@intel.com>
Tue, 30 Apr 2019 19:48:12 +0000 (19:48 +0000)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/common/isa.hpp

index aea5740bb664b94eb2167b71e48e3d29f76bcfd6..41af0055f1e6950aa621e1dd2170317f01c06509 100644 (file)
 #include <intrin.h>
 #else
 #include <string.h>
+#if !defined(__cpuid)
 #include <cpuid.h>
 #endif
+#endif
 
 class InstructionSet
 {