Commit 04b94af4 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/display/dm: handle FBC dc feature parameter



Set the dc_config properly when the option is enabled.

Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ce2127c4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);