diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-04-15 06:55:26 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-04-15 06:55:26 +0100 |
commit | 1ed8647aef012d30c602f86fc6f97a0a92d7710f (patch) | |
tree | 0b2277f4b5107f54725638b6e0797d565aaad68e /src | |
parent | cb35b397395cff8ff7f5155759f58c1840bfeeb5 (diff) |
sna: Add a cursor DBG for a failed pwrite update
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_display.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 6c43bb08..a2ba5da3 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -3262,7 +3262,8 @@ static struct sna_cursor *__sna_get_cursor(struct sna *sna, xf86CrtcPtr crtc) pwrite.offset = 0; pwrite.size = 4*size*size; pwrite.data_ptr = (uintptr_t)image; - (void)drmIoctl(sna->kgem.fd, DRM_IOCTL_I915_GEM_PWRITE, &pwrite); + if (drmIoctl(sna->kgem.fd, DRM_IOCTL_I915_GEM_PWRITE, &pwrite)) + __DBG(("%s: cursor update (pwrite) failed: %d\n", errno)); free(image); } |