radeon/video: enable encode support for raven
authorBoyuan Zhang <boyuan.zhang@amd.com>
Tue, 7 Nov 2017 21:25:09 +0000 (16:25 -0500)
committerLeo Liu <leo.liu@amd.com>
Fri, 17 Nov 2017 17:25:47 +0000 (12:25 -0500)
Enable h.264 encode for vcn hardware (raven)

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeon/radeon_video.c

index ea76ca17bc07a66415c4503ef2dbdb6fc08e64de..4edd0a4c371327cdf693a05b9b225e63c2eafbf9 100644 (file)
@@ -230,7 +230,8 @@ int si_vid_get_video_param(struct pipe_screen *screen,
                switch (param) {
                case PIPE_VIDEO_CAP_SUPPORTED:
                        return codec == PIPE_VIDEO_FORMAT_MPEG4_AVC &&
-                               si_vce_is_fw_version_supported(rscreen);
+                               (si_vce_is_fw_version_supported(rscreen) ||
+                               rscreen->family == CHIP_RAVEN);
                case PIPE_VIDEO_CAP_NPOT_TEXTURES:
                        return 1;
                case PIPE_VIDEO_CAP_MAX_WIDTH: