mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
radeonsi: Expose support for 10-bit VP9 decode
Fix si_vid_is_format_supported to expose support for 10-bit VP9 decode using P016 format. Without this change, 10-bit decode will be exposed only for HEVC even though newer hardware support 10-bit decode for VP9. Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
4a4b48fb05
commit
177a3df7b0
1 changed files with 5 additions and 0 deletions
|
|
@ -720,6 +720,11 @@ static boolean si_vid_is_format_supported(struct pipe_screen *screen,
|
|||
return (format == PIPE_FORMAT_NV12) ||
|
||||
(format == PIPE_FORMAT_P016);
|
||||
|
||||
/* Vp9 profile 2 supports 10 bit decoding using P016 */
|
||||
if (profile == PIPE_VIDEO_PROFILE_VP9_PROFILE2)
|
||||
return format == PIPE_FORMAT_P016;
|
||||
|
||||
|
||||
/* we can only handle this one with UVD */
|
||||
if (profile != PIPE_VIDEO_PROFILE_UNKNOWN)
|
||||
return format == PIPE_FORMAT_NV12;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue