summaryrefslogtreecommitdiffstats
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
parent6ef0cbc3b77360795c7a16e9438e5984aabd24e0 (diff)
downloadlinux-stable-9e834d77692314dde984981040f04196ba52f9cc.tar.gz
linux-stable-9e834d77692314dde984981040f04196ba52f9cc.tar.bz2
linux-stable-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>
-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;