modesetting: fix cursor rendering with hotspots.

older kernels report EINVAL not ENOSYS, doh.

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie 2014-02-28 12:04:30 +10:00
parent 2029c028fc
commit 98f59a33df

View File

@ -500,7 +500,7 @@ drmmode_show_cursor (xf86CrtcPtr crtc)
CursorPtr cursor = xf86_config->cursor;
int ret;
ret = drmModeSetCursor2(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id, handle, ms->cursor_width, ms->cursor_height, cursor->bits->xhot, cursor->bits->yhot);
if (ret == -ENOSYS)
if (ret == -EINVAL)
use_set_cursor2 = FALSE;
else
return;