From: Andrey Grodzovsky Date: Wed, 22 Feb 2017 20:31:47 +0000 (-0500) Subject: drm/amd/display: Unhardcode acrtc->max_cursor_{height,width} X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1034934584cf3e2f93da56cc00d6f1ffe2d2d5a9;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: Unhardcode acrtc->max_cursor_{height,width} Signed-off-by: Andrey Grodzovsky Reviewed-by: Jordan Lazare Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c index 8ae78c0653b6..19c92aec2f58 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c @@ -1615,8 +1615,8 @@ int amdgpu_dm_crtc_init(struct amdgpu_display_manager *dm, drm_crtc_helper_add(&acrtc->base, &amdgpu_dm_crtc_helper_funcs); - acrtc->max_cursor_width = 128; - acrtc->max_cursor_height = 128; + acrtc->max_cursor_width = dm->adev->dm.dc->caps.max_cursor_size; + acrtc->max_cursor_height = dm->adev->dm.dc->caps.max_cursor_size; acrtc->crtc_id = crtc_index; acrtc->base.enabled = false;