mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 23:20:03 +01:00
modesetting: Fix the error check from DRM_IOCTL_MODE_CURSOR2
The error value isn't always -EINVAL, e.g. the kernel drm core returns -ENXIO when the corresponding ops doesn't exist. Without this fix, DRM_IOCTL_MODE_CURSOR2 would be dealt as success even if it shouldn't. Signed-off-by: Takashi Iwai <tiwai@suse.de> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
3762edded8
commit
074cf58769
1 changed files with 2 additions and 2 deletions
|
|
@ -798,7 +798,7 @@ drmmode_set_cursor(xf86CrtcPtr crtc)
|
||||||
cursor->bits->xhot, cursor->bits->yhot);
|
cursor->bits->xhot, cursor->bits->yhot);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
return;
|
return;
|
||||||
if (ret == -EINVAL)
|
|
||||||
use_set_cursor2 = FALSE;
|
use_set_cursor2 = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue