Skip to content

Commit 04b94af

Browse files
committed
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>
1 parent ce2127c commit 04b94af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,9 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
429429
adev->asic_type < CHIP_RAVEN)
430430
init_data.flags.gpu_vm_support = true;
431431

432+
if (amdgpu_dc_feature_mask & DC_FBC_MASK)
433+
init_data.flags.fbc_support = true;
434+
432435
/* Display Core create. */
433436
adev->dm.dc = dc_create(&init_data);
434437

0 commit comments

Comments
 (0)