radeon/vcn: use cdw to calculate slice header index
authorBoyuan Zhang <boyuan.zhang@amd.com>
Mon, 14 Sep 2020 00:04:28 +0000 (20:04 -0400)
committerBoyuan Zhang <boyuan.zhang@amd.com>
Fri, 4 Dec 2020 00:49:27 +0000 (19:49 -0500)
commitc56a1898d73df6c1ad816e76a71c52c782279c88
treef3c13e79528840ae3ef5b5f1f6ebb9807668ee00
parente37cd34ea6b2b58e584b32d0ebade67d8abd5c33
radeon/vcn: use cdw to calculate slice header index

Use DWORD count to calculate the number of DWORD filled in slice header template.

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6942>
src/gallium/drivers/radeon/radeon_vcn_enc_1_2.c