summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2015-06-25 12:12:12 -0400
committerMarek Olšák <[email protected]>2015-08-14 15:02:30 +0200
commit4dfcf6e3a91be97fcf9d3f44e76a7a389f8f40b2 (patch)
treeaff2d27ce67ae8f68b1e54e8a7ea0be5d0b9ba78 /src/gallium/drivers/radeon
parent42bc4e6be434b398d9edaff0ed10dfb5bf89b6a6 (diff)
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 <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-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;
}