mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 03:30:36 +02:00
radeon/video: add MJPEG support
v2: add ASIC and Kernel version check Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
3fe713ce3d
commit
15f3335577
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue