Re: [FFmpeg-devel] [PATCH 2/2] Fix msa can't be disabled when '--cpu=loongson3a' assigned.

2020-09-10 Thread Michael Niedermayer
On Thu, Sep 10, 2020 at 07:05:38PM +0800, Shiyou Yin wrote:
> >-Original Message-
> >From: ffmpeg-devel-boun...@ffmpeg.org 
> >[mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of
> >Shiyou Yin
> >Sent: Thursday, September 3, 2020 2:30 PM
> >To: ffmpeg-devel@ffmpeg.org
> >Subject: [FFmpeg-devel] [PATCH 2/2] Fix msa can't be disabled when 
> >'--cpu=loongson3a' assigned.
> >
> >There are compiler and runtime check for MSA and MMI.
> >Remove the redundant setting of MSA and MMI for cores specified by "--cpu".
> >
> >Signed-off-by: Shiyou Yin 
> >---
> > configure | 9 -
> > 1 file changed, 9 deletions(-)
> >
> >diff --git a/configure b/configure
> >index 5640720..7f103fa 100755
> >--- a/configure
> >+++ b/configure
> >@@ -5025,8 +5025,6 @@ elif enabled mips; then
> > disable loongson3
> > disable mipsdsp
> > disable mipsdspr2
> >-disable msa
> >-disable mmi
> >
> > cpuflags="-march=$cpu"
> >
> >@@ -5035,17 +5033,13 @@ elif enabled mips; then
> > mips1|mips3)
> > ;;
> > mips32r2)
> >-enable msa
> > enable mips32r2
> > ;;
> > mips32r5)
> >-enable msa
> > enable mips32r2
> > enable mips32r5
> > ;;
> > mips64r2|mips64r5)
> >-enable msa
> >-enable mmi
> > enable mips64r2
> > enable loongson3
> > ;;
> >@@ -5062,7 +5056,6 @@ elif enabled mips; then
> > enable mips32r2
> > ;;
> > p5600)
> >-enable msa
> > enable mips32r2
> > enable mips32r5
> > check_cflags "-mtune=p5600" && check_cflags "-msched-weight 
> > -mload-store-pairs
> >-funroll-loops"
> >@@ -5077,7 +5070,6 @@ elif enabled mips; then
> > ;;
> > # Cores from Loongson
> > loongson2e|loongson2f|loongson3*)
> >-enable mmi
> > enable local_aligned
> > enable simd_align_16
> > enable fast_64bit
> >@@ -5100,7 +5092,6 @@ elif enabled mips; then
> > case $cpu in
> > loongson3*)
> > enable loongson3
> >-enable msa
> > cpuflags="-march=loongson3a -mhard-float 
> > $expensive_optimization_flag"
> > ;;
> > loongson2e)
> >--
> >2.1.0
> >
> 
> Ping.

will apply

thx

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

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 


signature.asc
Description: PGP signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 2/2] Fix msa can't be disabled when '--cpu=loongson3a' assigned.

2020-09-10 Thread Shiyou Yin
>-Original Message-
>From: ffmpeg-devel-boun...@ffmpeg.org [mailto:ffmpeg-devel-boun...@ffmpeg.org] 
>On Behalf Of
>Shiyou Yin
>Sent: Thursday, September 3, 2020 2:30 PM
>To: ffmpeg-devel@ffmpeg.org
>Subject: [FFmpeg-devel] [PATCH 2/2] Fix msa can't be disabled when 
>'--cpu=loongson3a' assigned.
>
>There are compiler and runtime check for MSA and MMI.
>Remove the redundant setting of MSA and MMI for cores specified by "--cpu".
>
>Signed-off-by: Shiyou Yin 
>---
> configure | 9 -
> 1 file changed, 9 deletions(-)
>
>diff --git a/configure b/configure
>index 5640720..7f103fa 100755
>--- a/configure
>+++ b/configure
>@@ -5025,8 +5025,6 @@ elif enabled mips; then
> disable loongson3
> disable mipsdsp
> disable mipsdspr2
>-disable msa
>-disable mmi
>
> cpuflags="-march=$cpu"
>
>@@ -5035,17 +5033,13 @@ elif enabled mips; then
> mips1|mips3)
> ;;
> mips32r2)
>-enable msa
> enable mips32r2
> ;;
> mips32r5)
>-enable msa
> enable mips32r2
> enable mips32r5
> ;;
> mips64r2|mips64r5)
>-enable msa
>-enable mmi
> enable mips64r2
> enable loongson3
> ;;
>@@ -5062,7 +5056,6 @@ elif enabled mips; then
> enable mips32r2
> ;;
> p5600)
>-enable msa
> enable mips32r2
> enable mips32r5
> check_cflags "-mtune=p5600" && check_cflags "-msched-weight 
> -mload-store-pairs
>-funroll-loops"
>@@ -5077,7 +5070,6 @@ elif enabled mips; then
> ;;
> # Cores from Loongson
> loongson2e|loongson2f|loongson3*)
>-enable mmi
> enable local_aligned
> enable simd_align_16
> enable fast_64bit
>@@ -5100,7 +5092,6 @@ elif enabled mips; then
> case $cpu in
> loongson3*)
> enable loongson3
>-enable msa
> cpuflags="-march=loongson3a -mhard-float 
> $expensive_optimization_flag"
> ;;
> loongson2e)
>--
>2.1.0
>

Ping.

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH 2/2] Fix msa can't be disabled when '--cpu=loongson3a' assigned.

2020-09-02 Thread Shiyou Yin
There are compiler and runtime check for MSA and MMI.
Remove the redundant setting of MSA and MMI for cores specified by "--cpu".

Signed-off-by: Shiyou Yin 
---
 configure | 9 -
 1 file changed, 9 deletions(-)

diff --git a/configure b/configure
index 5640720..7f103fa 100755
--- a/configure
+++ b/configure
@@ -5025,8 +5025,6 @@ elif enabled mips; then
 disable loongson3
 disable mipsdsp
 disable mipsdspr2
-disable msa
-disable mmi
 
 cpuflags="-march=$cpu"
 
@@ -5035,17 +5033,13 @@ elif enabled mips; then
 mips1|mips3)
 ;;
 mips32r2)
-enable msa
 enable mips32r2
 ;;
 mips32r5)
-enable msa
 enable mips32r2
 enable mips32r5
 ;;
 mips64r2|mips64r5)
-enable msa
-enable mmi
 enable mips64r2
 enable loongson3
 ;;
@@ -5062,7 +5056,6 @@ elif enabled mips; then
 enable mips32r2
 ;;
 p5600)
-enable msa
 enable mips32r2
 enable mips32r5
 check_cflags "-mtune=p5600" && check_cflags "-msched-weight 
-mload-store-pairs -funroll-loops"
@@ -5077,7 +5070,6 @@ elif enabled mips; then
 ;;
 # Cores from Loongson
 loongson2e|loongson2f|loongson3*)
-enable mmi
 enable local_aligned
 enable simd_align_16
 enable fast_64bit
@@ -5100,7 +5092,6 @@ elif enabled mips; then
 case $cpu in
 loongson3*)
 enable loongson3
-enable msa
 cpuflags="-march=loongson3a -mhard-float 
$expensive_optimization_flag"
 ;;
 loongson2e)
-- 
2.1.0

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".