diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-11-02 11:54:27 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-06 16:46:12 -0500 |
commit | 5822e9539dc11721b53d74accd4c091b982011d0 (patch) | |
tree | 634c39126fdceb6c480e6c0eb79fd7c56461b597 | |
parent | 04b94af4e348acc52546b9b19c933575f26589a1 (diff) |
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.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 e3624ca24574..7c9fd9052ee2 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | |||
@@ -1362,7 +1362,8 @@ static bool construct( | |||
1362 | pool->base.sw_i2cs[i] = NULL; | 1362 | pool->base.sw_i2cs[i] = NULL; |
1363 | } | 1363 | } |
1364 | 1364 | ||
1365 | dc->fbc_compressor = dce110_compressor_create(ctx); | 1365 | if (dc->config.fbc_support) |
1366 | dc->fbc_compressor = dce110_compressor_create(ctx); | ||
1366 | 1367 | ||
1367 | if (!underlay_create(ctx, &pool->base)) | 1368 | if (!underlay_create(ctx, &pool->base)) |
1368 | goto res_create_fail; | 1369 | goto res_create_fail; |