vdpau: remove bogus assert
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Sun, 8 Mar 2020 08:01:42 +0000 (09:01 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 08:17:07 +0000 (08:17 +0000)
commit78d42d41d47f65f20cfd9ce984eebb9282ed96e4
tree5daf4a466f44c3d3594d402a2944b77a7467a51c
parentb6cebf64394858be8e896c73de7d896f2bb071f7
vdpau: remove bogus assert

The assert introduced by 24f2b0a8560 triggers when an application
requests a chroma_type that's different to the one from the
PIPE_VIDEO_CAP_PREFERED_FORMAT (before this change the chroma_type
was set but ignored).

So restore this behavior and ignore the chroma_type.

Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Fixes: 24f2b0a8560 ("gallium/video: remove pipe_video_buffer.chroma_format")
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4104>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4104>
src/gallium/state_trackers/vdpau/surface.c