radeon/video: config encode stacked frame number based on HW
authorLeo Liu <leo.liu@amd.com>
Thu, 25 Jun 2015 16:12:12 +0000 (12:12 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 14 Aug 2015 13:02:30 +0000 (15:02 +0200)
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>
src/gallium/drivers/radeon/radeon_video.c

index 65949fba3b9083f8dd02f9b0128b24cd6c6a7160..5a8d18762d90d8dc63bde20bc7ee3f1862dc0b70 100644 (file)
@@ -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;
                }