diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-05-14 08:42:48 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-05-14 11:01:29 +0100 |
commit | 09e26d38e9eca33e27fd0b30524e75814d5d3ad9 (patch) | |
tree | b79a36c4b7edf6281ddae19aa0123df274b38e7d /src/sna/kgem.c | |
parent | 7303c6c75df135d2d01f126f240a270ad26201c6 (diff) |
sna: Avoid promoting SHM Pixmaps for DRI
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.c')
-rw-r--r-- | src/sna/kgem.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 2331769e..a87a67d8 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -5746,6 +5746,8 @@ struct kgem_bo *kgem_create_map(struct kgem *kgem, assert(MAP(ptr) == ptr); + DBG(("%s(%p size=%d, read-only?=%d) - has_userptr?=%d\n", __FUNCTION__, + ptr, size, read_only, kgem->has_userptr)); if (!kgem->has_userptr) return NULL; @@ -5759,8 +5761,10 @@ struct kgem_bo *kgem_create_map(struct kgem *kgem, handle = gem_userptr(kgem->fd, (void *)first_page, last_page-first_page, read_only); - if (handle == 0) + if (handle == 0) { + DBG(("%s: import failed, errno=%d\n", __FUNCTION__, errno)); return NULL; + } bo = __kgem_bo_alloc(handle, (last_page - first_page) / PAGE_SIZE); if (bo == NULL) { |