[FFmpeg-devel] Disable MSA optimization for big endian arch

Submitted by shivraj.patil@imgtec.com on June 1, 2017, 8:37 a.m.

Details

Message ID 1496306239-17887-1-git-send-email-shivraj.patil@imgtec.com
State New
Headers show

Commit Message

shivraj.patil@imgtec.com June 1, 2017, 8:37 a.m.
From: Shivraj Patil <shivraj.patil@imgtec.com>

The current upstreamed code has been written and tested for Little Endian systems.
We do have plans to add the Big Endian support in near future, but till that time, need to disable all to avoid its usage and failures.

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
---
 configure |    4 ++++
 1 file changed, 4 insertions(+)

Comments

Michael Niedermayer June 2, 2017, 10:09 p.m.
On Thu, Jun 01, 2017 at 02:07:19PM +0530, shivraj.patil@imgtec.com wrote:
> From: Shivraj Patil <shivraj.patil@imgtec.com>
> 
> The current upstreamed code has been written and tested for Little Endian systems.
> We do have plans to add the Big Endian support in near future, but till that time, need to disable all to avoid its usage and failures.
> 
> Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
> ---
>  configure |    4 ++++
>  1 file changed, 4 insertions(+)

applied

thx

Patch hide | download patch | download mbox

diff --git a/configure b/configure
index 40eb2bb..6af896b 100755
--- a/configure
+++ b/configure
@@ -5392,6 +5392,10 @@  elif enabled mips; then
     enabled mipsdsp && check_inline_asm_flags mipsdsp '"addu.qb $t0, $t1, $t2"' '-mdsp'
     enabled mipsdspr2 && check_inline_asm_flags mipsdspr2 '"absq_s.qb $t0, $t1"' '-mdspr2'
 
+    if enabled bigendian && enabled msa; then
+        disable msa
+    fi
+
 elif enabled parisc; then
 
     if enabled gcc; then