radeonsi/vcn: ROI capability value initialization.

It needs to initialize the cap value to
avoid causing confusion.

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/26741>
This commit is contained in:
Ruijing Dong 2023-12-18 09:39:37 -05:00 committed by Marge Bot
parent 148230db05
commit 8bcf33cdc1

View file

@ -832,6 +832,8 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil
case PIPE_VIDEO_CAP_ENC_ROI:
if (sscreen->info.vcn_ip_version >= VCN_1_0_0) {
union pipe_enc_cap_roi attrib;
attrib.value = 0;
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;