radeonsi: enable H.264 temporal encoding support for VCN
Signed-off-by: Thong Thai <thong.thai@amd.com> Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11850>
This commit is contained in:
@@ -555,6 +555,12 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil
|
||||
return true;
|
||||
case PIPE_VIDEO_CAP_STACKED_FRAMES:
|
||||
return (sscreen->info.family < CHIP_TONGA) ? 1 : 2;
|
||||
case PIPE_VIDEO_CAP_MAX_TEMPORAL_LAYERS:
|
||||
if (codec == PIPE_VIDEO_FORMAT_MPEG4_AVC &&
|
||||
sscreen->info.family >= CHIP_RAVEN)
|
||||
return 4;
|
||||
else
|
||||
return 0;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user