drm/amd/display: Unhardcode acrtc->max_cursor_{height,width}
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Wed, 22 Feb 2017 20:31:47 +0000 (15:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:20:30 +0000 (17:20 -0400)
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_types.c

index 8ae78c0..19c92ae 100644 (file)
@@ -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;