Fix c vs avx mismatch of diamond_search_sad()
authorDeepa K G <deepa.kg@ittiam.com>
Mon, 24 Apr 2023 10:26:18 +0000 (15:56 +0530)
committerDeepa K G <deepa.kg@ittiam.com>
Mon, 5 Jun 2023 07:18:24 +0000 (12:48 +0530)
commit7b66c730a2edd3e232dce5e8ef2522ff83928a90
tree4330a849fa82dd34289c53d4260a602e235babf0
parent575bd73f6118a88c5a0cf1d27a8ec9b5bda8c278
Fix c vs avx mismatch of diamond_search_sad()

In the function vp9_diamond_search_sad_avx(), arranged
the cost vector in a specific order. This ensures that
the motion vector with the least index is selected,
when there exists more than one candidate motion
vector with the minimum cost, thus resolving the
c vs avx mismatch.

STATS_CHANGED

Change-Id: I4f8864f464f9ea2aae6250db3d8ad91cb08b26e2
vp9/encoder/x86/vp9_diamond_search_sad_avx.c