radeonsi/vcn: change max_poc to fixed value for hevc encoder.
authorRuijing Dong <ruijing.dong@amd.com>
Wed, 13 Sep 2023 19:03:17 +0000 (15:03 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 14 Sep 2023 14:43:15 +0000 (14:43 +0000)
commitfb0f51bc642be3d7d96fa0a582185e46f2649f37
tree9c3199168468e89535acfab5b06f07be1adc0de8
parent84390c5c98e8369c81a37b4c88b0a2acc5f27a34
radeonsi/vcn: change max_poc to fixed value for hevc encoder.

problem: max_poc means the number of bits used in poc lsb
         in slice header, and it should not be related to GOP
 size. When large GOP size used, it could generate
 corrupted video, as the POC could not be correctly
 decoded.

solution: use fixed value of max_poc (16) for now.

Cc: mesa-stable
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25214>
src/gallium/drivers/radeonsi/radeon_vcn_enc.c