Revert "ampere iter2: HEVC EXT_SPS_ST_RPS / _LT_RPS dynamic-array submission (VDPU381)"

This reverts commit f61f736380.
This commit is contained in:
2026-05-17 09:48:29 +00:00
parent f61f736380
commit a8a91d92d6
4 changed files with 3 additions and 135 deletions
-22
View File
@@ -339,28 +339,6 @@ VAStatus RequestCreateContext(VADriverContextP context, VAConfigID config_id,
}
}
/*
* iter2 (ampere-fourier): probe for HEVC EXT_SPS_ST_RPS dynamic-array
* control. Present on VDPU381/383 (RK3588), absent on legacy RK3399
* rkvdec. Result drives h265_set_controls to append empty-but-allocated
* EXT_SPS_ST_RPS + _LT_RPS controls — required to stop a kernel
* out-of-bounds OOPS in rkvdec_hevc_prepare_hw_st_rps when the
* framework's dynamic-array init (1 zeroed element) is undersized for
* streams with num_short_term_ref_pic_sets > 1.
*
* Probed once per driver lifetime; flag persists (gating is HEVC-only
* so cross-codec leakage cannot occur).
*/
if ((config_object->profile == VAProfileHEVCMain ||
config_object->profile == VAProfileHEVCMain10) &&
!driver_data->has_ext_sps_rps) {
struct v4l2_query_ext_ctrl qec;
if (v4l2_query_ext_ctrl(driver_data->video_fd,
V4L2_CID_STATELESS_HEVC_EXT_SPS_ST_RPS,
&qec) == 0)
driver_data->has_ext_sps_rps = true;
}
destination_planes_count = video_format->planes_count;
/*