summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Liu <leo.liu@amd.com>2015-06-25 12:12:12 -0400
committerLeo Liu <leo.liu@amd.com>2015-06-26 09:25:12 -0400
commit11b5ef3f480384f8277ddfd0b09d5195191bf44c (patch)
treeaa5749e86313f25a6c13f633424ac45da8c22611
parent6eb93c9721eae3e6e75324f7e4aa500e53394f22 (diff)
downloadmesa-11b5ef3f480384f8277ddfd0b09d5195191bf44c.tar.gz
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 <leo.liu@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
-rw-r--r--src/gallium/drivers/radeon/radeon_video.c2
1 files changed, 2 insertions, 0 deletions
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;
}