[Mesa-dev] [PATCH 3/3] radeon/vce: disable vce dual pipe on VegaM

Marek Olšák maraeo at gmail.com
Tue Apr 17 22:14:53 UTC 2018


From: Leo Liu <leo.liu at amd.com>

---
 src/gallium/drivers/radeon/radeon_vce.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c
index 57b9d349582..22168b50e24 100644
--- a/src/gallium/drivers/radeon/radeon_vce.c
+++ b/src/gallium/drivers/radeon/radeon_vce.c
@@ -409,21 +409,22 @@ struct pipe_video_codec *si_vce_create_encoder(struct pipe_context *context,
 		return NULL;
 
 	if (sscreen->info.drm_major == 3)
 		enc->use_vm = true;
 	if ((sscreen->info.drm_major == 2 && sscreen->info.drm_minor >= 42) ||
             sscreen->info.drm_major == 3)
 		enc->use_vui = true;
 	if (sscreen->info.family >= CHIP_TONGA &&
 	    sscreen->info.family != CHIP_STONEY &&
 	    sscreen->info.family != CHIP_POLARIS11 &&
-	    sscreen->info.family != CHIP_POLARIS12)
+	    sscreen->info.family != CHIP_POLARIS12 &&
+	    sscreen->info.family != CHIP_VEGAM)
 		enc->dual_pipe = true;
 	/* TODO enable B frame with dual instance */
 	if ((sscreen->info.family >= CHIP_TONGA) &&
 		(templ->max_references == 1) &&
 		(sscreen->info.vce_harvest_config == 0))
 		enc->dual_inst = true;
 
 	enc->base = *templ;
 	enc->base.context = context;
 
-- 
2.17.0



More information about the mesa-dev mailing list