gallium/video: remove pipe_video_buffer.chroma_format
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 5 Feb 2020 09:21:20 +0000 (10:21 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 27 Feb 2020 09:01:31 +0000 (10:01 +0100)
commit24f2b0a8560f34745854bf8263fa7c2d0f95f2bc
tree775bf398b06d9e3c10cc4d5f9a0f9ca80d09ccea
parent87807298a307d4e38195dc04f66c26404e7cb791
gallium/video: remove pipe_video_buffer.chroma_format

chroma_format depends on buffer_format so use the format_to_chroma_format
helper instead of storing it next to buffer_format.
This avoids bugs where one value is changed without updating the other.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3738>
23 files changed:
src/gallium/auxiliary/vl/vl_deint_filter.c
src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
src/gallium/auxiliary/vl/vl_video_buffer.c
src/gallium/drivers/nouveau/nouveau_video.c
src/gallium/drivers/nouveau/nouveau_vp3_video.c
src/gallium/drivers/nouveau/nv50/nv84_video.c
src/gallium/drivers/r600/radeon_vce.c
src/gallium/drivers/radeon/radeon_uvd_enc.c
src/gallium/drivers/radeon/radeon_vce.c
src/gallium/drivers/radeon/radeon_vcn_enc.c
src/gallium/include/pipe/p_video_codec.h
src/gallium/state_trackers/omx/bellagio/vid_enc.c
src/gallium/state_trackers/omx/vid_dec_common.c
src/gallium/state_trackers/omx/vid_dec_h264_common.c
src/gallium/state_trackers/omx/vid_enc_common.c
src/gallium/state_trackers/va/image.c
src/gallium/state_trackers/va/postproc.c
src/gallium/state_trackers/va/surface.c
src/gallium/state_trackers/vdpau/decode.c
src/gallium/state_trackers/vdpau/mixer.c
src/gallium/state_trackers/vdpau/output.c
src/gallium/state_trackers/vdpau/surface.c
src/gallium/state_trackers/xvmc/surface.c