Mesa (main): radeonsi: enable H.264 temporal encoding support for VCN
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 26 20:27:34 UTC 2021
Module: Mesa
Branch: main
Commit: 8236320a0be393c3bfc81d47575d656e885158be
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8236320a0be393c3bfc81d47575d656e885158be
Author: Thong Thai <thong.thai at amd.com>
Date: Tue Jul 13 11:55:14 2021 -0400
radeonsi: enable H.264 temporal encoding support for VCN
Signed-off-by: Thong Thai <thong.thai at amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11850>
---
src/gallium/drivers/radeonsi/si_get.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c
index 6e1b8028450..7968f7dbaf3 100644
--- a/src/gallium/drivers/radeonsi/si_get.c
+++ b/src/gallium/drivers/radeonsi/si_get.c
@@ -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;
}
More information about the mesa-commit
mailing list