radeonsi/vcn: num bs_bufs must be proportional to num jpeg engines
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Thu, 20 Jul 2023 04:51:22 +0000 (10:21 +0530)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Jul 2023 14:42:09 +0000 (14:42 +0000)
commit0195e1204b6c49cd7851c590c93bb1a3dcf1d6ee
treee550d9c63d110a22452dd2981b1c237f2d5969dd
parent47a9d016414e31805ca53f6054edad0ceca651a9
radeonsi/vcn: num bs_bufs must be proportional to num jpeg engines

using limited number of bs buffers constraints the simultaneous
use of all available jpeg engines especially when count is lesser than
that of the available engines. make sure the number of buffers
available are more than or equal to the number of jpeg engines on the asic.

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24240>
src/gallium/drivers/radeonsi/radeon_vcn_dec.c