[FFmpeg-devel] [PATCH v2] configure: [loongson] adjust MMI check in configure

2021-08-02 Thread Jin Bo
After standardizing the use of 'pxor' in commit 'ebedd26', FFmpeg build failed with upstream compiler, for 'pxor' is not supported in time. This patch helps to workaround the build failure by checking whether 'pxor' is supported during configuration, if not, MMI will be disabled. --- configure | 2

[FFmpeg-devel] [PATCH] configure: [loongson] adjust MMI check in configure

2021-08-02 Thread Jin Bo
After standardizing usage of 'pxor' in commit 'ebedd26', FFmpeg build failed with upstream compiler where pxor is untimely supported. This patch help to workaround this build failure by checking pxor in configure. When using upstream compiler where pxor is unsupported, MMI will be disabled. --- co

[FFmpeg-devel] [PATCH v1] configure: fix mmi check

2021-07-22 Thread Jin Bo
pxor is loongson media extension instruction, it's not supported yet on upstream gcc complier. Disable mmi to avoid build error if the compiler does not support it. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index bb6b096414..ec536dea40

[FFmpeg-devel] [PATCH v3 2/3] libavcodec/mips: Fix build errors reported by clang

2021-05-31 Thread Jin Bo
Clang is more strict on the type of asm operands, float or double type variable should use constraint 'f', integer variable should use constraint 'r'. Signed-off-by: Jin Bo --- libavcodec/mips/constants.c | 89 +++-- libavcodec/mips/constants.h | 88 +

[FFmpeg-devel] [PATCH v2 2/3] libavcodec/mips: Fix build errors reported by clang

2021-05-31 Thread Jin Bo
Clang is more strict on the type of asm operands, float or double type variable should use constraint 'f', integer variable should use constraint 'r'. Signed-off-by: Jin Bo --- libavcodec/mips/constants.c | 89 +++-- libavcodec/mips/constants.h | 88 +

[FFmpeg-devel] [PATCH v2 2/3] libavcodec/mips: Fix build errors reported by clang

2021-05-31 Thread Jin Bo
Clang is more strict on the type of asm operands, float or double type variable should use constraint 'f', integer variable should use constraint 'r'. Signed-off-by: Jin Bo --- libavcodec/mips/constants.c | 89 +++-- libavcodec/mips/constants.h | 88 +

[FFmpeg-devel] [PATCH 3/3] libavcodec/mips: Fix fate errors reported by clang

2021-05-27 Thread Jin Bo
The data width of gsldrc1/gsldlc1 should be 8 bytes wide. Signed-off-by: Jin Bo --- libavcodec/mips/vp9_mc_mmi.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/mips/vp9_mc_mmi.c b/libavcodec/mips/vp9_mc_mmi.c index fa65ff5..812f7a6 100644 --- a

[FFmpeg-devel] [PATCH 2/3] libavcodec/mips: Fix build errors reported by clang

2021-05-27 Thread Jin Bo
Clang is more strict on the type of asm operands, float or double type variable should use constraint 'f', integer variable should use constraint 'r'. Signed-off-by: Jin Bo --- libavcodec/mips/constants.c | 89 +++-- libavcodec/mips/constants.h | 88 +