Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
François Cartegnie
dav1d
Commits
89c3f53f
Commit
89c3f53f
authored
Oct 19, 2018
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wiener AVX2 SIMD and related unit test.
parent
1c42f8bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/x86/looprestoration.asm
src/x86/looprestoration.asm
+4
-1
tests/checkasm/looprestoration.c
tests/checkasm/looprestoration.c
+1
-1
No files found.
src/x86/looprestoration.asm
View file @
89c3f53f
...
...
@@ -81,11 +81,13 @@ cglobal wiener_filter_h, 8, 12, 16, dst, left, src, stride, fh, w, h, edge
test
leftq
,
leftq
; left == NULL for the edge-extended bottom/top
jz
.load_left_combined
movd
xm0
,
[
leftq
]
add
leftq
,
4
pinsrd
xm0
,
[
srcq
],
1
pslldq
xm0
,
9
jmp
.left_load_done
.load_left_combined:
movq
xm0
,
[
srcq
-
5
]
movq
xm0
,
[
srcq
-
3
]
pslldq
xm0
,
10
jmp
.left_load_done
.emu_left:
movd
xm0
,
[
srcq
]
...
...
@@ -195,6 +197,7 @@ cglobal wiener_filter_v, 7, 10, 16, dst, stride, mid, w, h, fv, edge
vpbroadcastd
m12
,
[
pd_1024
]
DEFINE_ARGS
ds
t
,
stride
,
mid
,
w
,
h
,
ylim
,
edge
,
y
,
mptr
,
ds
tptr
mov
ylimd
,
edged
and
ylimd
,
8
; have_bottom
shr
ylimd
,
2
sub
ylimd
,
3
...
...
tests/checkasm/looprestoration.c
View file @
89c3f53f
...
...
@@ -95,7 +95,7 @@ static void check_wiener(Dav1dLoopRestorationDSPContext *const c) {
const
int
base_w
=
1
+
(
rand
()
%
384
);
const
int
base_h
=
1
+
(
rand
()
&
63
);
for
(
enum
LrEdgeFlags
edges
=
0
;
edges
<=
0
;
edges
++
)
{
for
(
enum
LrEdgeFlags
edges
=
0
;
edges
<=
0
xf
;
edges
++
)
{
const
int
w
=
edges
&
LR_HAVE_RIGHT
?
256
:
base_w
;
const
int
h
=
edges
&
LR_HAVE_BOTTOM
?
64
:
base_h
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment