aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-11-02 10:54:27 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-11-07 17:05:59 -0500
commit9e834d77692314dde984981040f04196ba52f9cc (patch)
tree9b5a011979159f03d703b35461048dd7f482605d /drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
parentdrm/amdgpu/display/dm: handle FBC dc feature parameter (diff)
downloadlinux-dev-9e834d77692314dde984981040f04196ba52f9cc.tar.xz
linux-dev-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/amd/display/dc/dce110/dce110_resource.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c3
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;