[Mesa-dev] [PATCH] gallium: fix build failure on powerpcspe
Michel Dänzer
michel at daenzer.net
Sun Mar 2 19:45:32 PST 2014
On Son, 2014-03-02 at 19:58 +0100, Julien Cristau wrote:
> From: Roland Stigge <stigge at antcom.de>
>
> 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
PIPE_ARCH_PPC* are also used for setting PIPE_ARCH_BIG_ENDIAN in
src/gallium/include/pipe/p_config.h, so I'm afraid this needs more work.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list