diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-11 08:54:06 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-11 08:54:06 +0100 |
commit | 07e7589d86624e9c1ca4c38d00cf6886e1445ae2 (patch) | |
tree | 6c7bc3531b1aa444a414de4ebfd22f31fd6a5b16 /intel/intel_bufmgr.c | |
parent | 7ca558494dd3f68f29bb6ca981de9b8f49620b60 (diff) |
intel: query whether a buffer is reusable.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'intel/intel_bufmgr.c')
-rw-r--r-- | intel/intel_bufmgr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/intel/intel_bufmgr.c b/intel/intel_bufmgr.c index ce21a332..9144fdd4 100644 --- a/intel/intel_bufmgr.c +++ b/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) |