Skip to content

Commit

Permalink
drm/amdgpu/display/dm: handle FBC dc feature parameter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Deucher committed Nov 6, 2018
1 parent ce2127c commit 04b94af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,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);

Expand Down

0 comments on commit 04b94af

Please sign in to comment.