Skip to content
Snippets Groups Projects
Commit e8a60633 authored by Rose Hudson's avatar Rose Hudson Committed by Marge Bot
Browse files

radeonsi: report 0 block size for Polaris HEVC encoding

makes encoded videos resemble the input again :)

Closes: mesa/mesa#7992


Fixes: c4482a3c ("radeonsi/vcn: enable multi-slice encoding")
Reviewed-by: default avatarRuijing Dong <ruijing.dong@amd.com>
Part-of: <mesa/mesa!20714>
parent 08f6d14b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment