[PATCH 5/5] drm/amdgpu/display/dce11: only enable FBC when selected

Wentland, Harry Harry.Wentland at amd.com
Tue Nov 6 20:52:27 UTC 2018


On 2018-11-06 3:29 p.m., Alex Deucher wrote:
> Causes a black screen on a Stoney laptop.
> 
> bug: https://bugs.freedesktop.org/show_bug.cgi?id=108577
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Thanks.

Series is
Reviewed-by: Harry Wentland <harry.wentland at amd.com>

Harry

> ---
>  drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
> index 1a90e1a38055..e33d11785b1f 100644
> --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
> +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
> @@ -1354,7 +1354,8 @@ static bool construct(
>  		pool->base.sw_i2cs[i] = NULL;
>  	}
>  
> -	dc->fbc_compressor = dce110_compressor_create(ctx);
> +	if (dc->config.fbc_support)
> +		dc->fbc_compressor = dce110_compressor_create(ctx);
>  
>  	if (!underlay_create(ctx, &pool->base))
>  		goto res_create_fail;
> 


More information about the amd-gfx mailing list