diff options
-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; } |