diff options
author | Alok Hota <[email protected]> | 2018-09-12 11:53:05 -0500 |
---|---|---|
committer | Alok Hota <[email protected]> | 2019-04-30 19:48:12 +0000 |
commit | e7f381e9ca2b435481a86e4fb45ec13a12ce6d77 (patch) | |
tree | 1afeabaf867c9d78e3e4f7558243c0cebf9bda79 /src/gallium/drivers/swr | |
parent | ae436203d90b45fe82aa07f4e4c9d0c8be6a7b13 (diff) |
swr/rast: add guards for cpuid on Linux
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/common/isa.hpp | 2 |
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 { |