GNOME Bugzilla – Bug 325180
BUG: altivec on Darwin/MacOSX PowerPC
Last modified: 2008-01-15 13:03:41 UTC
Please describe the problem: The altivec assembly code is not compatible with Darwin Steps to reproduce: 1. ./configure 2. 3. Actual results: Altivec not detected Expected results: Altivec detected on my G4 Does this happen every time? yes Other information: I have some patches to make it work and also to check for runtime capabilities in configure
There's no altivec compositing acceleration code in 2.2.x, so this isn't relevant. 2.3.x should have stuff that works properly.
Created attachment 56489 [details] [review] configure patch he patch is a bit cheesy and not cross-platform but this is my first time playing with a configure script. It checks the compilatin with darwin compatible assembler and then checks for the runtime capacities of the CPU.
Created attachment 56490 [details] [review] patch inline assembly code in app/base again, not cross-platform but works on MacOSX
(In reply to comment #1) > There's no altivec compositing acceleration code in 2.2.x, so this isn't > relevant. 2.3.x should have stuff that works properly. > Sorry but what is this ? (in app/base/cpu-accel.c) #if defined (ARCH_PPC) && defined (USE_ALTIVEC) && defined(__GNUC__) #define HAVE_ACCEL 1 @@ -395,7 +395,7 @@ canjump = 1; asm volatile ("mtspr 256, %0\n\t" "vand %%v0, %%v0, %%v0" : : "r" (-1));
That's just the feature test code. There's no altivec code in app/composite, so even if stuff is detected properly, it makes no practical difference. Look at the 2.3.x sources, there's an altivec implementation in app/composite, and the configure and cpu-accel checks are very different on OS X. BTW, configure is a generated file, you're supposed to make changes to configure.in, not the configure script directly.