radeonsi: replace the hard coded video decode and encode caps
authorLeo Liu <leo.liu@amd.com>
Wed, 20 Jan 2021 00:01:00 +0000 (19:01 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 12 Apr 2021 17:33:32 +0000 (17:33 +0000)
commit544044b29ee3b6bf9ba6939b2cb922bd0749c7b2
tree39fbd75a19990639e6e2b74c92fb30079e7e86d4
parent75a725e4c555c1f3f8d28120029cb64749c7cd6d
radeonsi: replace the hard coded video decode and encode caps

For the caps of max_width, max_height and max_level with those
that are available via querying the kernel.

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10095>
src/gallium/drivers/radeonsi/si_get.c