frontends/va: check number of temporal layers supported by encoder
authorThong Thai <thong.thai@amd.com>
Tue, 13 Jul 2021 15:55:28 +0000 (11:55 -0400)
committerThong Thai <thong.thai@amd.com>
Mon, 26 Jul 2021 19:05:33 +0000 (15:05 -0400)
commit96c581e8979e79f95245f8a222c1cc925a02923d
tree17be63ac759ffc2fbb4982aafcfc5ceead044005
parenta23beb9c4369bb6e258558427f22aa8a9a701c94
frontends/va: check number of temporal layers supported by encoder

Checks the encoder to determine the number of temporal layers supported,
and returns max_num_temporal_layers_minus1, along with setting the
corresponding control flag if multiple layers are supported.

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11850>
src/gallium/frontends/va/config.c