Module: Mesa Branch: main Commit: e8a60633daec2989df718d28e0baa873bb9b1d15 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8a60633daec2989df718d28e0baa873bb9b1d15
Author: Rose Hudson <[email protected]> Date: Sun Jan 15 12:20:07 2023 +0000 radeonsi: report 0 block size for Polaris HEVC encoding makes encoded videos resemble the input again :) Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7992 Fixes: c4482a3c1a9 ("radeonsi/vcn: enable multi-slice encoding") Reviewed-by: Ruijing Dong <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20714> --- src/gallium/drivers/radeonsi/si_get.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 45a4b8e6caa..aee9b7477f2 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -644,8 +644,9 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil return 0; case PIPE_VIDEO_CAP_ENC_HEVC_BLOCK_SIZES: - if (profile == PIPE_VIDEO_PROFILE_HEVC_MAIN || - profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10) { + if (sscreen->info.family >= CHIP_RAVEN && + (profile == PIPE_VIDEO_PROFILE_HEVC_MAIN || + profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10)) { union pipe_h265_enc_cap_block_sizes pipe_block_sizes; pipe_block_sizes.value = 0;
