mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
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>
This commit is contained in:
parent
f332822a88
commit
6ef0cbc3b7
1 changed files with 3 additions and 0 deletions
|
@ -434,6 +434,9 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
|
||||||
adev->asic_type < CHIP_RAVEN)
|
adev->asic_type < CHIP_RAVEN)
|
||||||
init_data.flags.gpu_vm_support = true;
|
init_data.flags.gpu_vm_support = true;
|
||||||
|
|
||||||
|
if (amdgpu_dc_feature_mask & DC_FBC_MASK)
|
||||||
|
init_data.flags.fbc_support = true;
|
||||||
|
|
||||||
/* Display Core create. */
|
/* Display Core create. */
|
||||||
adev->dm.dc = dc_create(&init_data);
|
adev->dm.dc = dc_create(&init_data);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue