radeon/vce: disable two pipe mode for stoney
authorLeo Liu <leo.liu@amd.com>
Tue, 10 Nov 2015 18:34:17 +0000 (13:34 -0500)
committerLeo Liu <leo.liu@amd.com>
Fri, 20 Nov 2015 18:21:54 +0000 (13:21 -0500)
Only one encoding pipe available for Stoney

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeon/radeon_vce.c

index b2b084e0f2e4ceaa6b5d52ffd86faffc3a99389b..8a60441c056d4bbbd52776460a200fcecba470ce 100644 (file)
@@ -406,7 +406,8 @@ struct pipe_video_codec *rvce_create_encoder(struct pipe_context *context,
                enc->use_vm = true;
        if ((rscreen->info.drm_major > 2) || (rscreen->info.drm_minor >= 42))
                enc->use_vui = true;
-       if (rscreen->info.family >= CHIP_TONGA)
+       if (rscreen->info.family >= CHIP_TONGA &&
+             rscreen->info.family != CHIP_STONEY)
                enc->dual_pipe = true;
        /* TODO enable B frame with dual instance */
        if ((rscreen->info.family >= CHIP_TONGA) &&