mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drm/amd/display: Unhardcode acrtc->max_cursor_{height,width}
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>
This commit is contained in:
parent
d092bf6585
commit
1034934584
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user