radeonsi/vcn: merge get_output_format_param function
authorRuijing Dong <ruijing.dong@amd.com>
Tue, 18 Apr 2023 20:39:23 +0000 (16:39 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 27 Apr 2023 15:11:35 +0000 (15:11 +0000)
commitbb08f061d962406769a6cbd045e458a07b2e7796
treec77a09eb3a33d89aa7e144c3d484fc9cbaae714f
parenta4f96446fb9ad61504818a959c6f01ec64b0741a
radeonsi/vcn: merge get_output_format_param function

reason:
so far, the output_format_param function can be shared
by different encoders, and just for h264 encoder, there
is no 10bit encoding supported. This is to reduce
the repeated code before having av1 encoder.

Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22585>
src/gallium/drivers/radeonsi/radeon_vcn_enc.c