mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 13:40:37 +02:00
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:
parent
51935d594e
commit
8236320a0b
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue