File: 07_gallium-fix-build-failure-on-powerpcspe.diff

package info (click to toggle)
mesa 13.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 103,740 kB
  • ctags: 239,997
  • sloc: ansic: 1,259,426; cpp: 223,700; xml: 79,181; python: 25,218; asm: 7,926; yacc: 6,389; sh: 5,898; makefile: 4,362; lex: 1,715
file content (40 lines) | stat: -rw-r--r-- 1,184 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From a4f14e7239780b02af8d74669c5458d4b0957d4d Mon Sep 17 00:00:00 2001
From: Roland Stigge <stigge@antcom.de>
Date: Sun, 2 Mar 2014 19:52:56 +0100
Subject: [PATCH] gallium: fix build failure on powerpcspe

In the case of powerpc, mesa activates some altivec instructions
that are unknown on the powerpcspe architecture (see
https://wiki.debian.org/PowerPCSPEPort), causing a build failure as the
'vand' opcode is not recognized by the assembler.

This patch fixes this by preventing the PPC-specialcasing in case of
powerpcspe (__NO_FPRS__ is only defined there).

https://bugs.debian.org/695746
---
 src/gallium/include/pipe/p_config.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h
index d603681..8189a73 100644
--- a/src/gallium/include/pipe/p_config.h
+++ b/src/gallium/include/pipe/p_config.h
@@ -107,12 +107,14 @@
 #endif
 #endif
 
+#ifndef __NO_FPRS__
 #if defined(__ppc__) || defined(__ppc64__) || defined(__PPC__)
 #define PIPE_ARCH_PPC
 #if defined(__ppc64__) || defined(__PPC64__)
 #define PIPE_ARCH_PPC_64
 #endif
 #endif
+#endif
 
 #if defined(__s390x__)
 #define PIPE_ARCH_S390
-- 
1.9.0