Skip to content

radeonsi/vcn: Don't reinitialize encode session on bitrate/fps change

David Rosca requested to merge nowrep/mesa:vcn-dynrate into main

What does this MR do and why?

radeonsi/vcn: Don't reinitialize encode session on bitrate/fps change

When bitrate or fps change is detected, only update rate control
parameters instead of completely reinitializing encode session.

This fixes an issue where if bitrate or fps changed very often, the
output bitrate would significantly overshoot the target bitrate in some
cases. In other cases, the output bitrate would be extremely low instead.

Cc: mesa-stable
Edited by David Rosca

Merge request reports