diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-03-20 10:41:30 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-03-20 10:41:30 +0000 |
commit | 2b81362b619d5603f28639e669f3030d6c7a8e02 (patch) | |
tree | 03be383fd8d38ff6c65f6a47f99944511a4ff9e6 /lib/libdrm/intel/intel_bufmgr.c | |
parent | 463789b8671482b661f77e2cebfb7be3bda94309 (diff) |
Merge libdrm 2.4.67
Diffstat (limited to 'lib/libdrm/intel/intel_bufmgr.c')
-rw-r--r-- | lib/libdrm/intel/intel_bufmgr.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/libdrm/intel/intel_bufmgr.c b/lib/libdrm/intel/intel_bufmgr.c index 14ea9f9fa..a28534003 100644 --- a/lib/libdrm/intel/intel_bufmgr.c +++ b/lib/libdrm/intel/intel_bufmgr.c @@ -261,6 +261,15 @@ drm_intel_bo_get_tiling(drm_intel_bo *bo, uint32_t * tiling_mode, } int +drm_intel_bo_set_softpin_offset(drm_intel_bo *bo, uint64_t offset) +{ + if (bo->bufmgr->bo_set_softpin_offset) + return bo->bufmgr->bo_set_softpin_offset(bo, offset); + + return -ENODEV; +} + +int drm_intel_bo_disable_reuse(drm_intel_bo *bo) { if (bo->bufmgr->bo_disable_reuse) @@ -293,6 +302,17 @@ drm_intel_bo_madvise(drm_intel_bo *bo, int madv) } int +drm_intel_bo_use_48b_address_range(drm_intel_bo *bo, uint32_t enable) +{ + if (bo->bufmgr->bo_use_48b_address_range) { + bo->bufmgr->bo_use_48b_address_range(bo, enable); + return 0; + } + + return -ENODEV; +} + +int drm_intel_bo_references(drm_intel_bo *bo, drm_intel_bo *target_bo) { return bo->bufmgr->bo_references(bo, target_bo); |