UPSTREAM: 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.

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

BUG=b:177702160
TEST=HEVC playback should work

Signed-off-by: Krunal Patel <krunalkumarmukeshkumar.patel@amd.corp-partner.google.com>
Change-Id: I7a5dafce5ec3cfa7be7540a52c0ad4da10471c21
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7949>
(cherry picked from commit 925d701014c2ba084061eae131f4b5c75e595f29)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/mesa/+/2721891
Reviewed-by: Drew Davenport <ddavenport@chromium.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Tested-by: Drew Davenport <ddavenport@chromium.org>
2 files changed