From: Leo Liu Date: Thu, 25 Jun 2015 16:12:12 +0000 (-0400) Subject: radeon/video: config encode stacked frame number based on HW X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4dfcf6e3a91be97fcf9d3f44e76a7a389f8f40b2;p=mesa.git radeon/video: config encode stacked frame number based on HW since VCE 3.0 with dual instances, we need stack frames for them. Signed-off-by: Leo Liu Acked-by: Alex Deucher Reviewed-by: Christian König --- diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c index 65949fba3b9..5a8d18762d9 100644 --- a/src/gallium/drivers/radeon/radeon_video.c +++ b/src/gallium/drivers/radeon/radeon_video.c @@ -225,6 +225,8 @@ int rvid_get_video_param(struct pipe_screen *screen, return false; case PIPE_VIDEO_CAP_SUPPORTS_PROGRESSIVE: return true; + case PIPE_VIDEO_CAP_STACKED_FRAMES: + return (rscreen->family < CHIP_TONGA) ? 1 : 2; default: return 0; }