aboutsummaryrefslogtreecommitdiff
path: root/libdrm/intel/intel_bufmgr.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-08-27 18:32:07 -0700
committerEric Anholt <eric@anholt.net>2009-08-28 14:56:41 -0700
commit8214a65ad1f4ccd4966e0def0d43f0c4289e4bc6 (patch)
treee368e75829a0fa3722d89f9c0d0e003083457f57 /libdrm/intel/intel_bufmgr.c
parent19d6fadfa29993b261ebac2869b2289f6d3091c3 (diff)
Add drm_intel_bo_busy to query whether mapping a BO would block.
Diffstat (limited to 'libdrm/intel/intel_bufmgr.c')
-rw-r--r--libdrm/intel/intel_bufmgr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libdrm/intel/intel_bufmgr.c b/libdrm/intel/intel_bufmgr.c
index f170e7fc..219c7616 100644
--- a/libdrm/intel/intel_bufmgr.c
+++ b/libdrm/intel/intel_bufmgr.c
@@ -220,6 +220,13 @@ int drm_intel_bo_disable_reuse(drm_intel_bo *bo)
return 0;
}
+int drm_intel_bo_busy(drm_intel_bo *bo)
+{
+ if (bo->bufmgr->bo_busy)
+ return bo->bufmgr->bo_busy(bo);
+ return 0;
+}
+
int
drm_intel_get_pipe_from_crtc_id (drm_intel_bufmgr *bufmgr, int crtc_id)
{