]> git.proxmox.com Git - mirror_ubuntu-jammy-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>
Tue, 6 Nov 2018 21:45:56 +0000 (16:45 -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 289ddd52cac489d1ad243eba732b72ecc7442957..d3f5cb1795bf87315fd75c981557a6fcd5e3e5aa 100644 (file)
@@ -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);