Module: Mesa Branch: main Commit: 8bbdde2d9aea22ba9c9b5e89219a4b19001d344f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8bbdde2d9aea22ba9c9b5e89219a4b19001d344f
Author: Ruijing Dong <[email protected]> Date: Fri Dec 8 18:34:37 2023 -0500 radeonsi/vcn: enable ROI feature in vcn. Enable ROI feature. Reviewed-by: Boyuan Zhang <[email protected]> Signed-off-by: Ruijing Dong <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26659> --- src/gallium/drivers/radeonsi/si_get.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 063aebac67a..c022c08607d 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -829,6 +829,17 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil else return 0; + case PIPE_VIDEO_CAP_ENC_ROI: + if (sscreen->info.vcn_ip_version >= VCN_1_0_0) { + union pipe_enc_cap_roi attrib; + attrib.bits.num_roi_regions = PIPE_ENC_ROI_REGION_NUM_MAX; + attrib.bits.roi_rc_priority_support = PIPE_ENC_FEATURE_NOT_SUPPORTED; + attrib.bits.roi_rc_qp_delta_support = PIPE_ENC_FEATURE_SUPPORTED; + return attrib.value; + } + else + return 0; + default: return 0; }
