gallium: add new variable for video frame statistics
authorThong Thai <thong.thai@amd.com>
Tue, 6 Dec 2022 21:02:42 +0000 (16:02 -0500)
committerThong Thai <thong.thai@amd.com>
Fri, 9 Dec 2022 18:37:00 +0000 (13:37 -0500)
commit2d4a36ce64791971c2abe0280778a7d7555bb273
treedddd5e32bd10f3ffd8819760d4a2f5498dac5961
parentc872e339a158056aca29c4b3e1f62c435aa81948
gallium: add new variable for video frame statistics

Video encoder previously reuses the associated_data variable to output
encoding statistics, but it ended up breaking when transcoding. This
commit adds a new variable just for statistics.

Fixes: 2d1bd619dfd ("frontends/va: add ability for encoder to output statistics")
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/20190>
src/gallium/drivers/radeonsi/radeon_vcn_enc.c
src/gallium/frontends/va/picture.c
src/gallium/include/pipe/p_video_codec.h