diff options
author | Pratik Vishwakarma <[email protected]> | 2019-07-09 11:53:26 +0530 |
---|---|---|
committer | Leo Liu <[email protected]> | 2019-07-09 15:26:54 -0400 |
commit | 177a3df7b0a2645dbdfacabcbe08caad3be22ed2 (patch) | |
tree | 92f1fd6ce479613b68d939f111984e6efdc48a51 | |
parent | 4a4b48fb057a4812fbc39cc054308818d2a19b32 (diff) |
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 <[email protected]>
Reviewed-by: Christian König <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_get.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 8e07cbe989f..3cc1085db3b 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -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; |