commit | c5577bed0e8577c49abde9c51806dd77387a101a | [log] [tgz] |
---|---|---|
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | Sun Dec 06 14:56:58 2020 +0100 |
committer | Dylan Baker <dylan.c.baker@intel.com> | Mon Jan 25 10:49:58 2021 -0800 |
tree | c9bfea812b741baed131ca88f9cc799fafc3f432 | |
parent | 06fadeeda7b6d3e465959c16ae4c886319bb9aca [diff] |
frontends/va/context: don't set max_references with num_render_targets 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 https://lists.01.org/pipermail/intel-vaapi-media/2017-July/000052.html and https://github.com/intel/libva/issues/251). 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 <vjaquez@igalia.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7949> (cherry picked from commit 925d701014c2ba084061eae131f4b5c75e595f29)