diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-05-15 15:51:06 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-05-15 15:51:06 +0000 |
commit | b6280b451fe07b1d8f3f3991ab5f15c95771e9d6 (patch) | |
tree | c97549f759810aa7242a596127be48ec688de8a1 /lib/libdrm/intel/intel_bufmgr.c | |
parent | 2cf3919008ea77bfbe118989e9dcdc4046d776d0 (diff) |
Add drm_intel_bo_is_reusable(), to check if a buffer object will be put
in the userland BO cache or not. Bump minor.
From Chris Wilson in upstream git. ok matthieu@
Diffstat (limited to 'lib/libdrm/intel/intel_bufmgr.c')
-rw-r--r-- | lib/libdrm/intel/intel_bufmgr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libdrm/intel/intel_bufmgr.c b/lib/libdrm/intel/intel_bufmgr.c index ce21a3323..9144fdd47 100644 --- a/lib/libdrm/intel/intel_bufmgr.c +++ b/lib/libdrm/intel/intel_bufmgr.c @@ -229,6 +229,13 @@ int drm_intel_bo_disable_reuse(drm_intel_bo *bo) return 0; } +int drm_intel_bo_is_reusable(drm_intel_bo *bo) +{ + if (bo->bufmgr->bo_is_reusable) + return bo->bufmgr->bo_is_reusable(bo); + return 0; +} + int drm_intel_bo_busy(drm_intel_bo *bo) { if (bo->bufmgr->bo_busy) |