From e7f381e9ca2b435481a86e4fb45ec13a12ce6d77 Mon Sep 17 00:00:00 2001 From: Alok Hota Date: Wed, 12 Sep 2018 11:53:05 -0500 Subject: [PATCH] swr/rast: add guards for cpuid on Linux Reviewed-by: Bruce Cherniak --- src/gallium/drivers/swr/rasterizer/common/isa.hpp | 2 ++ 1 file changed, 2 insertions(+) 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 #else #include +#if !defined(__cpuid) #include #endif +#endif class InstructionSet { -- 2.30.2