summaryrefslogtreecommitdiff
path: root/graphics/mesa/patches/patch-src_util_u_cpu_detect_c
blob: 4eedf0723d5e80393307c90f5d1b222c9fe43b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: src/util/u_cpu_detect.c
--- src/util/u_cpu_detect.c.orig
+++ src/util/u_cpu_detect.c
@@ -224,10 +224,13 @@ check_os_altivec_support(void)
 
          util_cpu_caps.has_altivec = 1;
 
+/* no support for POWER7 VSX instructions in binutils 2.17 */
+#ifndef __OpenBSD__
          if (enable_vsx) {
             __asm __volatile("xxland %vs0, %vs0, %vs0");
             util_cpu_caps.has_vsx = 1;
          }
+#endif
          signal(SIGILL, SIG_DFL);
       } else {
          util_cpu_caps.has_altivec = 0;