diff --git a/src/asm/aarch64/dist.rs b/src/asm/aarch64/dist.rs index c8d01de197..cb97504469 100644 --- a/src/asm/aarch64/dist.rs +++ b/src/asm/aarch64/dist.rs @@ -80,7 +80,7 @@ pub fn get_sad( let bsize_opt = BlockSize::from_width_and_height_opt(src.rect().width, src.rect().height); - let call_rust = || -> u32 { rust::get_sad(dst, src, bit_depth, cpu) }; + let call_rust = || -> u32 { rust::get_sad(src, dst, bit_depth, cpu) }; #[cfg(feature = "check_asm")] let ref_dist = call_rust(); diff --git a/src/asm/x86/dist/mod.rs b/src/asm/x86/dist/mod.rs index 246b985ca2..97d4f2b117 100644 --- a/src/asm/x86/dist/mod.rs +++ b/src/asm/x86/dist/mod.rs @@ -172,7 +172,7 @@ pub fn get_sad( let bsize_opt = BlockSize::from_width_and_height_opt(src.rect().width, src.rect().height); - let call_rust = || -> u32 { rust::get_sad(dst, src, bit_depth, cpu) }; + let call_rust = || -> u32 { rust::get_sad(src, dst, bit_depth, cpu) }; #[cfg(feature = "check_asm")] let ref_dist = call_rust();