radeonsi/vcn: enable ROI feature in vcn.
Enable ROI feature. Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com> Signed-off-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26659>
This commit is contained in:
parent
9c07a2e10d
commit
8bbdde2d9a
1 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue