From 447cdd536fe4539b724e8a7024659e3f4cd724d1 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 13 Oct 2004 19:56:15 +0000 Subject: 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. :) --- src/mesa/math/m_xform.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mesa/math/m_xform.c') 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 } -- cgit v1.2.3