Skip to content

Add vcn dec and enc version query and check encode feature using minor version

Boyuan Zhang requested to merge boyzhang/mesa:vcn-version-check into main

What does this MR do and why?

Patch #1: Query the current VCN FW decode version, and encode major/minor version.
Why? Because we need to use FW version to determine if certain feature is available.

Patch #2: Using the queried encode minor version to determine whether current VCN FW supports the new rate control per picture method. If not, driver will use the original rc_per_pic method.
Why? As per https://gitlab.freedesktop.org/mesa/mesa/-/issues/10793, the old VCN FW doesn't support the new rate control per picture method, the rate control will be wrong as a result.

Merge request reports