After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 325180 - BUG: altivec on Darwin/MacOSX PowerPC
BUG: altivec on Darwin/MacOSX PowerPC
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: General
2.2.x
Other All
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-12-28 22:50 UTC by Yves de Champlain
Modified: 2008-01-15 13:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
configure patch (1.93 KB, patch)
2005-12-28 23:26 UTC, Yves de Champlain
none Details | Review
patch inline assembly code in app/base (546 bytes, patch)
2005-12-28 23:27 UTC, Yves de Champlain
none Details | Review

Description Yves de Champlain 2005-12-28 22:50:21 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
Comment 1 Manish Singh 2005-12-28 22:52:56 UTC
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.
Comment 2 Yves de Champlain 2005-12-28 23:26:26 UTC
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.
Comment 3 Yves de Champlain 2005-12-28 23:27:40 UTC
Created attachment 56490 [details] [review]
patch inline assembly code in app/base

again, not cross-platform but works on MacOSX
Comment 4 Yves de Champlain 2005-12-28 23:30:58 UTC
(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));
Comment 5 Manish Singh 2005-12-28 23:43:50 UTC
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.