mirror of
https://github.com/X11Libre/xf86-video-vmware.git
synced 2026-03-24 01:24:37 +00:00
vmware/vmwgfx: A bit more error logging when handling cursors
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Thomas Hellström <thellstrom@vmware.com>
This commit is contained in:
@@ -300,8 +300,11 @@ crtc_load_cursor_argb_kms(xf86CrtcPtr crtc, CARD32 * image)
|
||||
if (!crtcp->cursor_bo) {
|
||||
size_t size = 64*64*4;
|
||||
crtcp->cursor_bo = vmwgfx_dmabuf_alloc(ms->fd, size);
|
||||
if (!crtcp->cursor_bo)
|
||||
if (!crtcp->cursor_bo) {
|
||||
xf86DrvMsg(crtc->scrn->scrnIndex, X_ERROR,
|
||||
"Failed to create a dmabuf for cursor.\n");
|
||||
return;
|
||||
}
|
||||
crtcp->cursor_handle = crtcp->cursor_bo->handle;
|
||||
}
|
||||
|
||||
@@ -309,6 +312,9 @@ crtc_load_cursor_argb_kms(xf86CrtcPtr crtc, CARD32 * image)
|
||||
if (ptr) {
|
||||
memcpy(ptr, image, 64*64*4);
|
||||
vmwgfx_dmabuf_unmap(crtcp->cursor_bo);
|
||||
} else {
|
||||
xf86DrvMsg(crtc->scrn->scrnIndex, X_ERROR,
|
||||
"Failed to map cursor dmabuf.\n");
|
||||
}
|
||||
|
||||
if (crtc->cursor_shown)
|
||||
|
||||
Reference in New Issue
Block a user