]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/amdgpu/display/dm: handle FBC dc feature parameter
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Nov 2018 20:19:49 +0000 (15:19 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Nov 2018 22:05:58 +0000 (17:05 -0500)
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index f75d4fc3a42fc50b9637cf1d9608a52ab0199ba5..0e4e5f9e2219be488b53dc0576acba44eebd7eba 100644 (file)
@@ -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);