Skip to content

frontends/va/context: don't set max_references with num_render_targets

Víctor Manuel Jáquez Leal requested to merge vjaquez/mesa:va-context into master

For HEVC and VP9 template's max_references are tied to the number of surfaces associated with context. Later, the decoder is created if max_references is different to zero.

But vaCreateContext() doesn't really need an array of VASurfaceIDs (see and

This patch removes the validation of the max_references at decoder creation and also remove the assignation of num_render_targets to max_references.

Signed-off-by: Víctor Manuel Jáquez Leal

Merge request reports