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

Nicolai Hähnle nhaehnle at gmail.com
Wed Apr 18 10:22:37 UTC 2018


Series is:

Acked-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 18.04.2018 00:14, Marek Olšák wrote:
> 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;
>   
> 


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list