radeon: Use P010 for decoding of 10-bit videos
authorThong Thai <thong.thai@amd.com>
Wed, 18 Dec 2019 16:33:22 +0000 (11:33 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Jan 2020 16:30:22 +0000 (16:30 +0000)
commit466001a226fd6b6936485204acbe74d971154625
tree1a014b71016572f1bf07e83e8a9af2a8656b1391
parent68881af4351898871ae443e9949fada631461f01
radeon: Use P010 for decoding of 10-bit videos

Previously, P016 was used for the decoding of 10-bit HEVC/H.265 encoded
videos, which worked fine for mpv and ffmpeg. GStreamer specifically looks
for P010, so this patch sets the default buffer type to P010 for HEVC
decoding.

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3153>
src/gallium/drivers/r600/radeon_uvd.c
src/gallium/drivers/radeon/radeon_uvd.c
src/gallium/drivers/radeon/radeon_vcn_dec.c
src/gallium/drivers/radeonsi/si_get.c