diff options
author | Ian Romanick <[email protected]> | 2004-10-13 19:56:15 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2004-10-13 19:56:15 +0000 |
commit | 447cdd536fe4539b724e8a7024659e3f4cd724d1 (patch) | |
tree | ba64cf7c4d3b15dd52fef34f68a38b8057d988af /src/mesa/math | |
parent | b72ed81818e63a70c1ded2789b9e22ee4c516aae (diff) |
Initial support for PowerPC specific code in Mesa and DRI drivers. DRI
drivers built on PowerPC systems should now show things like "PowerPC" or
"PowerPC/Altivec" in the GL_RENDERER string.
The VMX moniker is used for Altivec/Velocity Engine/VMX SIMD additions. I
chose this not because I work for IBM but because it's a LOT shorter to
type. :)
Diffstat (limited to 'src/mesa/math')
-rw-r--r-- | src/mesa/math/m_xform.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/math/m_xform.c b/src/mesa/math/m_xform.c index c1d543b07e8..66dc44d9541 100644 --- a/src/mesa/math/m_xform.c +++ b/src/mesa/math/m_xform.c @@ -55,6 +55,10 @@ #include "sparc/sparc.h" #endif +#ifdef USE_PPC_ASM +#include "ppc/common_ppc_features.h" +#endif + clip_func _mesa_clip_tab[5]; clip_func _mesa_clip_np_tab[5]; dotprod_func _mesa_dotprod_tab[5]; @@ -204,9 +208,10 @@ _math_init_transformation( void ) #ifdef USE_X86_ASM _mesa_init_all_x86_transform_asm(); -#endif -#ifdef USE_SPARC_ASM +#elif defined( USE_SPARC_ASM ) _mesa_init_all_sparc_transform_asm(); +#elif defined( USE_PPC_ASM ) + _mesa_init_all_ppc_transform_asm(); #endif } |