diff options
author | Leo Liu <[email protected]> | 2017-08-16 11:49:33 -0400 |
---|---|---|
committer | Leo Liu <[email protected]> | 2017-08-21 10:09:09 -0400 |
commit | 15f3335577e0b0e57aa2c017f262170adcff0c8e (patch) | |
tree | 355710d62b41bb391b60d8f85eb352c232fb7d0c | |
parent | 3fe713ce3d9b87ee999a5dc97b05bff0bc8e388c (diff) |
radeon/video: add MJPEG support
v2: add ASIC and Kernel version check
Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Christian König <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeon/radeon_video.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c index f7a1c4743d5..857a714f993 100644 --- a/src/gallium/drivers/radeon/radeon_video.c +++ b/src/gallium/drivers/radeon/radeon_video.c @@ -280,6 +280,14 @@ int rvid_get_video_param(struct pipe_screen *screen, profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10); else if (rscreen->family >= CHIP_CARRIZO) return profile == PIPE_VIDEO_PROFILE_HEVC_MAIN; + case PIPE_VIDEO_FORMAT_JPEG: + if (rscreen->family < CHIP_CARRIZO || rscreen->family >= CHIP_VEGA10) + return false; + if (!(rscreen->info.drm_major == 3 && rscreen->info.drm_minor >= 19)) { + RVID_ERR("No MJPEG support for the kernel version\n"); + return false; + } + return true; default: return false; } |