summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2014-05-21 11:54:48 +0200
committerJakob Bornecrantz <jakob@vmware.com>2014-05-23 12:57:00 +0200
commit43e043868fbd74e28cd392a3665b36abdfe87de0 (patch)
treefa3295087968ef2f9a1f11abe0410e0c5e9bd1b8
parentaa7309254808e27a4ac5d3dc674be179646280b5 (diff)
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>
-rw-r--r--vmwgfx/vmwgfx_crtc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/vmwgfx/vmwgfx_crtc.c b/vmwgfx/vmwgfx_crtc.c
index 3bc3b21..5fce5f7 100644
--- a/vmwgfx/vmwgfx_crtc.c
+++ b/vmwgfx/vmwgfx_crtc.c
@@ -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)