Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Gramner <gramner@twoorioles.com>2022-09-26 16:33:38 +0300
committerHenrik Gramner <henrik@gramner.com>2022-09-26 16:38:13 +0300
commit8349845c8cb2d296e0d89416538c5f7215ca8a08 (patch)
treeab3d0827d81a989c9a3149fe32fadf38738b779d
parent345127a79532a679de025b031bdbc264df5f17ea (diff)
x86: Fix incorrect 32-bit parameter usage in high bit-depth AVX-512 mc
The 32-bit width parameter was used directly as a pointer offset, but the upper half is undefined. Fix it by replacing 'cmp' with 'sub' to explicitly zero those bits.
-rw-r--r--src/x86/mc16_avx512.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x86/mc16_avx512.asm b/src/x86/mc16_avx512.asm
index f8d1aaa..585ba53 100644
--- a/src/x86/mc16_avx512.asm
+++ b/src/x86/mc16_avx512.asm
@@ -1604,7 +1604,7 @@ cglobal put_8tap_16bpc, 4, 9, 16, dst, ds, src, ss, w, h, mx, my
vpbroadcastd m11, [buf+ 4]
vpbroadcastd m12, [buf+ 8]
vpbroadcastd m13, [buf+12]
- cmp wd, 16
+ sub wd, 16
je .h_w16
jg .h_w32
.h_w8: