radeonsi: Use DIV_ROUND_UP instead of ALIGN_POT
authorDavid Rosca <nowrep@gmail.com>
Thu, 13 Jul 2023 07:14:00 +0000 (09:14 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 14 Jul 2023 14:38:20 +0000 (14:38 +0000)
commitd408ae88db6df25463f6ba0165f7b5b004346658
tree999cba67e4cf86c517c7dfdafe8269a12d141730
parent6d312c616004a6063621fa6c8fe155fac9233fc9
radeonsi: Use DIV_ROUND_UP instead of ALIGN_POT

DIV_ROUND_UP is the correct replacement for ALIGN_TO.

Fixes: ba83c1e2
Signed-off-by: David Rosca <nowrep@gmail.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24127>
src/gallium/drivers/radeonsi/radeon_vcn_enc.c
src/gallium/drivers/radeonsi/radeon_vcn_enc.h