From f256f4f9b959b9f846c4dba6231ccf081f5bdf3c Mon Sep 17 00:00:00 2001 From: diego Date: Sat, 14 Aug 2004 15:17:39 +0000 Subject: Improved SPARC CPU detection and SPARC compilation fixes. patch by jb13@gomerbud.com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13019 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpeg2/Makefile | 4 ++++ libmpeg2/cpu_accel.c | 2 +- libmpeg2/motion_comp.c | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'libmpeg2') diff --git a/libmpeg2/Makefile b/libmpeg2/Makefile index 2c4c77b467..19674ed5bd 100644 --- a/libmpeg2/Makefile +++ b/libmpeg2/Makefile @@ -13,6 +13,10 @@ ifeq ($(TARGET_ALTIVEC),yes) SRCS += motion_comp_altivec.c idct_altivec.c endif +ifeq ($(TARGET_VIS),yes) +SRCS += motion_comp_vis.c +endif + .SUFFIXES: .c .o # .PHONY: all clean diff --git a/libmpeg2/cpu_accel.c b/libmpeg2/cpu_accel.c index e87f5b20a9..bf0d94bb59 100644 --- a/libmpeg2/cpu_accel.c +++ b/libmpeg2/cpu_accel.c @@ -108,7 +108,7 @@ static inline uint32_t arch_accel (void) } #endif /* ARCH_X86 */ -#if defined(ARCH_PPC) || defined(ARCH_SPARC) +#if defined(ARCH_PPC) || (defined(ARCH_SPARC) && defined(HAVE_VIS)) #include #include diff --git a/libmpeg2/motion_comp.c b/libmpeg2/motion_comp.c index 6686b016c1..f22370884a 100644 --- a/libmpeg2/motion_comp.c +++ b/libmpeg2/motion_comp.c @@ -55,9 +55,11 @@ void mpeg2_mc_init (uint32_t accel) else #endif #ifdef ARCH_SPARC +#ifdef HAVE_VIS if (accel & MPEG2_ACCEL_SPARC_VIS) mpeg2_mc = mpeg2_mc_vis; else +#endif #endif mpeg2_mc = mpeg2_mc_c; } -- cgit v1.2.3