gallium/vl: add chroma_format arg to vl_video_buffer functions
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 22 Sep 2020 12:32:13 +0000 (14:32 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 29 Sep 2020 16:50:37 +0000 (16:50 +0000)
commit2584d48b2cf13ea50b4e6177f32bacf0c7027e79
treeff3d94882a223a5bcc50249566cf64c579c4566d
parentb121b1b8b8f6df790dd8150a8b5e8021dc9e56bb
gallium/vl: add chroma_format arg to vl_video_buffer functions

vl_mpeg12_decoder needs to override the chroma_format value to get the
correct size calculated (chroma_format is used by vl_video_buffer_adjust_size).

I'm not sure why it's needed, but this is needed to get correct mpeg decode.

Fixes: 24f2b0a8560 ("gallium/video: remove pipe_video_buffer.chroma_format")
Acked-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6817>
src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
src/gallium/auxiliary/vl/vl_stubs.c
src/gallium/auxiliary/vl/vl_video_buffer.c
src/gallium/auxiliary/vl/vl_video_buffer.h
src/gallium/drivers/r600/r600_uvd.c