diff options
author | 2018-11-06 15:19:49 -0500 | |
---|---|---|
committer | 2018-11-07 17:05:58 -0500 | |
commit | 6ef0cbc3b77360795c7a16e9438e5984aabd24e0 (patch) | |
tree | 1044231324dbc3510c3cc78a0d6c2d1b48b87e97 | |
parent | drm/amdgpu/display/dc: add FBC to dc_config (diff) | |
download | linux-dev-6ef0cbc3b77360795c7a16e9438e5984aabd24e0.tar.xz linux-dev-6ef0cbc3b77360795c7a16e9438e5984aabd24e0.zip |
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) adev->asic_type < CHIP_RAVEN) init_data.flags.gpu_vm_support = true; + if (amdgpu_dc_feature_mask & DC_FBC_MASK) + init_data.flags.fbc_support = true; + /* Display Core create. */ adev->dm.dc = dc_create(&init_data); |