44 if (update && nv_crtc->
cursor.visible)
47 ret = RING_SPACE(evo, (nv_device(drm->
device)->chipset != 0x50 ? 5 : 3) + update * 2);
49 NV_ERROR(drm,
"no space while unhiding cursor\n");
53 if (nv_device(drm->
device)->chipset != 0x50) {
65 nv_crtc->
cursor.visible =
true;
70 nv50_cursor_hide(
struct nouveau_crtc *nv_crtc,
bool update)
79 if (update && !nv_crtc->
cursor.visible)
82 ret = RING_SPACE(evo, (nv_device(drm->
device)->chipset != 0x50 ? 5 : 3) + update * 2);
84 NV_ERROR(drm,
"no space while hiding cursor\n");
90 if (nv_device(drm->
device)->chipset != 0x50) {
99 nv_crtc->
cursor.visible =
false;
110 ((y & 0xFFFF) << 16) | (x & 0xFFFF));
118 if (offset == nv_crtc->
cursor.offset)
122 if (nv_crtc->
cursor.visible) {
123 nv_crtc->
cursor.visible =
false;
124 nv_crtc->
cursor.show(nv_crtc,
true);
131 nv_crtc->
cursor.set_offset = nv50_cursor_set_offset;
132 nv_crtc->
cursor.set_pos = nv50_cursor_set_pos;
133 nv_crtc->
cursor.hide = nv50_cursor_hide;
134 nv_crtc->
cursor.show = nv50_cursor_show;