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>
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;
}