radeon/vcn: calc_dpb_size should be based on dpb_type
authorSureshGuttula <suresh.guttula@amd.corp-partner.google.com>
Tue, 29 Jun 2021 05:11:14 +0000 (10:41 +0530)
committerMarge Bot <eric+marge@anholt.net>
Wed, 30 Jun 2021 14:22:37 +0000 (14:22 +0000)
commit52602452abd1b1d543161d4407afcf1812427ad7
tree03bd2474e7a8dd7abb454ddd490f849fdab4b1ea
parentc0397a42ce086db76e9cce760e63f4f80545b0de
radeon/vcn: calc_dpb_size should be based on dpb_type

This patch will fix the dpb size calculated for each dpb_type.
Current implementaion always calculating based on DPB_MAX_RES.To fix
this dpb_type should be decided before calc_dpb_size.

Signed-off-by: SureshGuttula <suresh.guttula@amd.corp-partner.google.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11633>
src/gallium/drivers/radeon/radeon_vcn_dec.c