OSDN Git Service

tests/amdgpu: fix uvd enc data corruption issue
authorJames Zhu <James.Zhu@amd.com>
Thu, 5 Oct 2017 14:57:42 +0000 (10:57 -0400)
committerLeo Liu <leo.liu@amd.com>
Fri, 6 Oct 2017 13:40:06 +0000 (09:40 -0400)
commit2ecafcae8a215d9994fb26a122d97bcb5437c5e8
tree1c209a3123447a1420e3f37d5b2124a15076022a
parent657b09438bf4978c9597368165c56227013625e9
tests/amdgpu: fix uvd enc data corruption issue

In uvd encode parameter package, parameters input_pic_luma_pitch and
input_pic_chroma_pitch should be picture width align with hardware alignment.
The hardware alignment is 16 for amdgpu family earlier than AMDGPU_FAMILY_AI,
and 256 for later than and including AMDGPU_FAMILY_AI.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
tests/amdgpu/uvd_enc_tests.c
tests/amdgpu/uve_ib.h