drm/nouveau: make cursor_set implementation consistent with other drivers
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 1 May 2011 21:49:04 +0000 (23:49 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 May 2011 00:51:05 +0000 (10:51 +1000)
commitb4fa9d0f6563756036f61c74fb38e3e97a1defd4
tree2cb3d8bbbfab00a77fa84c576505a5a26c20d997
parent52eba8dd5e830a836425e92d002bc51e42d3280e
drm/nouveau: make cursor_set implementation consistent with other drivers

When xorg state tracker wants to hide the cursor it calls set_cursor
with NULL buffer_handle and size=0x0, but nouveau refuses to hide it
because size is not 64x64... which is a bit odd. Both radeon and intel
check buffer_handle before validating size of cursor, so make nouveau
implementation consistent with them.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv04_crtc.c
drivers/gpu/drm/nouveau/nv50_crtc.c