mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
frontends/va: enable sao in hevc encoding
enable sao feature from config attribute. by default from vcn2, hevc encoding enables sao. Signed-off-by: Ruijing Dong <ruijing.dong@amd.com> Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18626>
This commit is contained in:
parent
0bf25a5313
commit
7829403809
1 changed files with 13 additions and 0 deletions
|
|
@ -625,6 +625,19 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil
|
|||
return 0;
|
||||
case PIPE_VIDEO_CAP_ENC_SUPPORTS_MAX_FRAME_SIZE:
|
||||
return (sscreen->info.family >= CHIP_RAVEN) ? 1 : 0;
|
||||
|
||||
case PIPE_VIDEO_CAP_ENC_HEVC_FEATURE_FLAGS:
|
||||
if ((sscreen->info.family >= CHIP_RENOIR) &&
|
||||
(profile == PIPE_VIDEO_PROFILE_HEVC_MAIN ||
|
||||
profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10)) {
|
||||
union pipe_h265_enc_cap_features pipe_features;
|
||||
pipe_features.value = 0;
|
||||
|
||||
pipe_features.bits.sao = PIPE_H265_ENC_FEATURE_SUPPORTED;
|
||||
return pipe_features.value;
|
||||
} else
|
||||
return 0;
|
||||
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue