[FFmpeg-devel] Loongson Optimization Patchs and Machine Express Issuse

Michael Niedermayer michael at niedermayer.cc
Sat Apr 25 14:10:31 CEST 2015


On Wed, Apr 22, 2015 at 02:27:11PM +0800, 周晓勇 wrote:
> Hi Michael,
>     We have prepared the patchs and Loongson-3A machine for you, but DHL needs consignee's phone number in case they could not contact u. Could you send me your phone number right now? I have make an appointment with courier tomorrow morning.
>     The enclosures are our Loongson-3 patchs for ffmpeg-master based on fbdaebb29861d32acc93fa55fd13554a2ae32eb4.
>     Cause the machine belong to the company, our boss need one Electronic Receipt to confirm that i do not keep the machine privately. Could you email me one receipt with your sign after you receive it?
> 
> Thanks.
> 
> 
> 
> --
> 周晓勇 @系统研发部
> Christian Zhou @System R & D
> 
> 龙芯中科技术有限公司
> Loongson Technology Corporation Limited
> 
> 北京市海淀区温泉镇中关村环保科技示范园龙芯产业园2号楼
> Loongson Industrial Park, building 2 , Zhongguancun Environmental protection park,
> Haidian District, Beijing, China

>  configure |   36 +++++++++++++++++++++++++++++++++---
>  1 file changed, 33 insertions(+), 3 deletions(-)
> c12c6e26378a6e67153bffe7003592b5a3973f4b  0001-configure-add-Loongson-3-support.patch
> From 65973ecb8b667c0f75dcc808d664f72d27c52f71 Mon Sep 17 00:00:00 2001
> From: ZhouXiaoyong <zhouxiaoyong at loongson.cn>
> Date: Wed, 15 Apr 2015 19:50:01 +0800
> Subject: [PATCH 01/11] configure: add Loongson-3 support
> 
> ---
>  configure | 36 +++++++++++++++++++++++++++++++++---
>  1 file changed, 33 insertions(+), 3 deletions(-)
> 
> diff --git a/configure b/configure
> index 389de92..9a3f341 100755
> --- a/configure
> +++ b/configure
> @@ -366,6 +366,7 @@ Optimization options (experts only):
>    --disable-mipsdspr2      disable MIPS DSP ASE R2 optimizations
>    --disable-msa            disable MSA optimizations
>    --disable-mipsfpu        disable floating point MIPS optimizations
> +  --disable-loongson3      disable Loongson-3 SIMD optimizations
>    --disable-fast-unaligned consider unaligned accesses slow
>  
>  Developer options (useful when working on FFmpeg itself):
> @@ -1573,6 +1574,7 @@ ARCH_EXT_LIST_MIPS="
>      mipsdspr1
>      mipsdspr2
>      msa
> +    loongson3
>  "
>  
>  ARCH_EXT_LIST_X86_SIMD="
> @@ -1612,7 +1614,6 @@ ARCH_EXT_LIST="
>      $ARCH_EXT_LIST_PPC
>      $ARCH_EXT_LIST_X86
>      $ARCH_EXT_LIST_MIPS
> -    loongson
>  "
>  
>  ARCH_FEATURES="
> @@ -2018,6 +2019,7 @@ mipsdspr2_deps="mips"
>  mips32r5_deps="mips"
>  mips64r6_deps="mips"
>  msa_deps="mips"
> +loongson3_deps="mips"
>  
>  altivec_deps="ppc"
>  ppc4xx_deps="ppc"

> @@ -3717,6 +3719,16 @@ case "$arch" in
>      ;;
>      mips*|IP*)
>          arch="mips"
> +        _cpuinfo="cat /proc/cpuinfo"
> +        pname=$($_cpuinfo | grep 'model' | cut -d ':' -f 2 | head -n 1)
> +        case $pname in
> +            *Loongson-3A*)
> +            cpu="loongson3a"
> +            ;;
> +            *Loongson-3B*)
> +            cpu="loongson3a"
> +            ;;
> +        esac
>      ;;
>      parisc*|hppa*)
>          arch="parisc"

applied without this hunk and without the loongson removial

you can remove loongson but it should be a seperate patch and also
remove all uses of HAVE_LOONGSON

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

What does censorship reveal? It reveals fear. -- Julian Assange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150425/d599056a/attachment.asc>


More information about the ffmpeg-devel mailing list