diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-11-06 15:19:49 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-07 17:05:58 -0500 |
commit | 6ef0cbc3b77360795c7a16e9438e5984aabd24e0 (patch) | |
tree | 1044231324dbc3510c3cc78a0d6c2d1b48b87e97 | |
parent | f332822a881f69b0a2155cbf4366daa33d15439c (diff) |
drm/amdgpu/display/dm: handle FBC dc feature parameter
Set the dc_config properly when the option is enabled.
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/amdgpu_dm/amdgpu_dm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index f75d4fc3a42f..0e4e5f9e2219 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | |||
@@ -434,6 +434,9 @@ static int amdgpu_dm_init(struct amdgpu_device *adev) | |||
434 | adev->asic_type < CHIP_RAVEN) | 434 | adev->asic_type < CHIP_RAVEN) |
435 | init_data.flags.gpu_vm_support = true; | 435 | init_data.flags.gpu_vm_support = true; |
436 | 436 | ||
437 | if (amdgpu_dc_feature_mask & DC_FBC_MASK) | ||
438 | init_data.flags.fbc_support = true; | ||
439 | |||
437 | /* Display Core create. */ | 440 | /* Display Core create. */ |
438 | adev->dm.dc = dc_create(&init_data); | 441 | adev->dm.dc = dc_create(&init_data); |
439 | 442 | ||