aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0772-drm-amdgpu-display-dm-handle-FBC-dc-feature-paramete.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0772-drm-amdgpu-display-dm-handle-FBC-dc-feature-paramete.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0772-drm-amdgpu-display-dm-handle-FBC-dc-feature-paramete.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0772-drm-amdgpu-display-dm-handle-FBC-dc-feature-paramete.patch b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0772-drm-amdgpu-display-dm-handle-FBC-dc-feature-paramete.patch
new file mode 100644
index 00000000..04fc86f3
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0772-drm-amdgpu-display-dm-handle-FBC-dc-feature-paramete.patch
@@ -0,0 +1,31 @@
+From 658223dccb38d4555179a6b5039591f5cd0a99e3 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Tue, 6 Nov 2018 15:19:49 -0500
+Subject: [PATCH 0772/2940] 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>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+index 492793722654..fe169553e884 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -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);
+
+--
+2.17.1
+