From: Thong Thai Date: Fri, 10 Jul 2020 18:03:26 +0000 (-0400) Subject: radeonsi: use PIPE_FORMAT_P010 for 10-bit VP9 decoding X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=045711dc1c076fcb8f095a272f44a84dd245c339;p=mesa.git radeonsi: use PIPE_FORMAT_P010 for 10-bit VP9 decoding Signed-off-by: Thong Thai Reviewed-by: Leo Liu Part-of: --- diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 29f71c9776e..bed2061070a 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -649,7 +649,7 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil if (profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10) return PIPE_FORMAT_P010; else if (profile == PIPE_VIDEO_PROFILE_VP9_PROFILE2) - return PIPE_FORMAT_P016; + return PIPE_FORMAT_P010; else return PIPE_FORMAT_NV12; @@ -710,7 +710,7 @@ static bool si_vid_is_format_supported(struct pipe_screen *screen, enum pipe_for /* Vp9 profile 2 supports 10 bit decoding using P016 */ if (profile == PIPE_VIDEO_PROFILE_VP9_PROFILE2) - return format == PIPE_FORMAT_P016; + return (format == PIPE_FORMAT_P010) || (format == PIPE_FORMAT_P016); /* we can only handle this one with UVD */ if (profile != PIPE_VIDEO_PROFILE_UNKNOWN)