diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-11-02 16:54:27 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-07 23:05:59 +0100 |
commit | 9e834d77692314dde984981040f04196ba52f9cc (patch) | |
tree | 9b5a011979159f03d703b35461048dd7f482605d /drivers/gpu/drm | |
parent | drm/amdgpu/display/dm: handle FBC dc feature parameter (diff) | |
download | linux-9e834d77692314dde984981040f04196ba52f9cc.tar.xz linux-9e834d77692314dde984981040f04196ba52f9cc.zip |
drm/amdgpu/display/dce11: only enable FBC when selected
Causes a black screen on a Stoney laptop.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=108577
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |