diff options
author | Boyuan Zhang <[email protected]> | 2017-11-07 16:25:09 -0500 |
---|---|---|
committer | Leo Liu <[email protected]> | 2017-11-17 12:25:47 -0500 |
commit | 3b7fd35d013f429bc84c02b555995145e6615e3d (patch) | |
tree | 85d2eee065801faaa9ddc9dd3e85987ea65b849c | |
parent | 549a41ed9d6e5e97668186b950d3a9659d03c8dd (diff) |
radeon/video: enable encode support for raven
Enable h.264 encode for vcn hardware (raven)
Signed-off-by: Boyuan Zhang <[email protected]>
Acked-by: Christian König <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeon/radeon_video.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c index ea76ca17bc0..4edd0a4c371 100644 --- a/src/gallium/drivers/radeon/radeon_video.c +++ b/src/gallium/drivers/radeon/radeon_video.c @@ -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: |