aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0294-drm-amd-display-Unhardcode-cursor-size-reported-back.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0294-drm-amd-display-Unhardcode-cursor-size-reported-back.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0294-drm-amd-display-Unhardcode-cursor-size-reported-back.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0294-drm-amd-display-Unhardcode-cursor-size-reported-back.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0294-drm-amd-display-Unhardcode-cursor-size-reported-back.patch
new file mode 100644
index 00000000..993c409c
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0294-drm-amd-display-Unhardcode-cursor-size-reported-back.patch
@@ -0,0 +1,34 @@
+From 8c5fa7821901453aedd3124a35404a23129cb9fe Mon Sep 17 00:00:00 2001
+From: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
+Date: Wed, 22 Feb 2017 14:24:11 -0500
+Subject: [PATCH 0294/4131] drm/amd/display: Unhardcode cursor size reported
+ back to UMD.
+
+This will return back MAX cursor size for given ASIC.
+
+Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
+Reviewed-by: Jordan Lazare <Jordan.Lazare@amd.com>
+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 | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+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 21286ae..ba96cf4 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -311,8 +311,8 @@ int amdgpu_dm_init(struct amdgpu_device *adev)
+ /* TODO: Add_display_info? */
+
+ /* TODO use dynamic cursor width */
+- adev->ddev->mode_config.cursor_width = 128;
+- adev->ddev->mode_config.cursor_height = 128;
++ adev->ddev->mode_config.cursor_width = adev->dm.dc->caps.max_cursor_size;
++ adev->ddev->mode_config.cursor_height = adev->dm.dc->caps.max_cursor_size;
+
+ if (drm_vblank_init(adev->ddev, adev->dm.display_indexes_num)) {
+ DRM_ERROR(
+--
+2.7.4
+