radeonsi/uvd: make format modifiers-aware
authorSimon Ser <contact@emersion.fr>
Fri, 26 Feb 2021 15:49:17 +0000 (16:49 +0100)
committerMarge Bot <eric+marge@anholt.net>
Sun, 28 Feb 2021 18:21:29 +0000 (18:21 +0000)
commit364857ffe810d21bb3946f06f24149b7b580711b
tree8754b4cbd7f2ad7064a4eda95076473c20d4c572
parentf1207229f92fe9c2f5f1447d0859d2152d2443ab
radeonsi/uvd: make format modifiers-aware

When format modifiers are supported, use
resource_create_with_modifiers instead of resource_create. This
allows radeonsi to set the modifier field, and allows VA-API
clients to have a proper modifier instead of
DRM_FORMAT_MOD_INVALID.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9308>
src/gallium/auxiliary/vl/vl_video_buffer.c
src/gallium/auxiliary/vl/vl_video_buffer.h
src/gallium/drivers/radeonsi/si_uvd.c