mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
drm: handle cursor_set2 in restore_fbdev_mode
If a driver uses the cursor_set2 crtc callback rather than cursor_set, use that. This fixes the fbdev helper for drivers that use cursor_set2. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
ec403b89e3
commit
03f9abb28c
1 changed files with 5 additions and 1 deletions
|
@ -345,7 +345,11 @@ static bool restore_fbdev_mode(struct drm_fb_helper *fb_helper)
|
||||||
struct drm_crtc *crtc = mode_set->crtc;
|
struct drm_crtc *crtc = mode_set->crtc;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (crtc->funcs->cursor_set) {
|
if (crtc->funcs->cursor_set2) {
|
||||||
|
ret = crtc->funcs->cursor_set2(crtc, NULL, 0, 0, 0, 0, 0);
|
||||||
|
if (ret)
|
||||||
|
error = true;
|
||||||
|
} else if (crtc->funcs->cursor_set) {
|
||||||
ret = crtc->funcs->cursor_set(crtc, NULL, 0, 0, 0);
|
ret = crtc->funcs->cursor_set(crtc, NULL, 0, 0, 0);
|
||||||
if (ret)
|
if (ret)
|
||||||
error = true;
|
error = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue