Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/ttm First attempt to make ttm...



details:   https://anonhg.NetBSD.org/src/rev/3ed1491a6c9e
branches:  trunk
changeset: 807728:3ed1491a6c9e
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Apr 20 19:17:04 2015 +0000

description:
First attempt to make ttm_buffer_object_transfer less bogus.

diffstat:

 sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r 0515fff7a4b9 -r 3ed1491a6c9e sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c
--- a/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c  Mon Apr 20 18:01:46 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c  Mon Apr 20 19:17:04 2015 +0000
@@ -524,8 +524,13 @@
        INIT_LIST_HEAD(&fbo->swap);
        INIT_LIST_HEAD(&fbo->io_reserve_lru);
 #ifdef __NetBSD__
+       linux_mutex_init(&fbo->wu_mutex);
        drm_vma_node_init(&fbo->vma_node);
+       uvm_obj_init(&fbo->uvmobj, bdev->driver->ttm_uvm_ops, true, 1);
+       mutex_obj_hold(bo->uvmobj.vmobjlock);
+       uvm_obj_setlock(&fbo->uvmobj, bo->uvmobj.vmobjlock);
 #else
+       mutex_init(&fbo->wu_mutex);
        drm_vma_node_reset(&fbo->vma_node);
 #endif
        atomic_set(&fbo->cpu_writers, 0);



Home | Main Index | Thread Index | Old Index