From 623116495ed7d6fffda7af611d434e7eb53e02b2 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Sat, 7 Oct 2017 08:18:30 +0000 Subject: [PATCH] intel-gpu-tools: fix i686 build --- srcpkgs/intel-gpu-tools/patches/i686.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/intel-gpu-tools/patches/i686.patch diff --git a/srcpkgs/intel-gpu-tools/patches/i686.patch b/srcpkgs/intel-gpu-tools/patches/i686.patch new file mode 100644 index 00000000000..c86ed1c7a7f --- /dev/null +++ b/srcpkgs/intel-gpu-tools/patches/i686.patch @@ -0,0 +1,22 @@ +--- lib/igt_x86.h.orig 2017-10-04 10:36:48.000000000 +0000 ++++ lib/igt_x86.h 2017-10-07 08:15:28.264965837 +0000 +@@ -40,19 +40,7 @@ + #define AVX 0x80 + #define AVX2 0x100 + +-#if defined(__x86_64__) + unsigned igt_x86_features(void); + char *igt_x86_features_to_string(unsigned features, char *line); +-#else +-static inline unsigned igt_x86_features(void) +-{ +- return 0; +-} +-static inline char *igt_x86_features_to_string(unsigned features, char *line) +-{ +- line[0] = 0; +- return line; +-} +-#endif + + #endif /* IGT_X86_H */