summaryrefslogtreecommitdiff
path: root/libdrm/intel/intel_bufmgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdrm/intel/intel_bufmgr.c')
-rw-r--r--libdrm/intel/intel_bufmgr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libdrm/intel/intel_bufmgr.c b/libdrm/intel/intel_bufmgr.c
index 5057fe69..f170e7fc 100644
--- a/libdrm/intel/intel_bufmgr.c
+++ b/libdrm/intel/intel_bufmgr.c
@@ -219,3 +219,12 @@ int drm_intel_bo_disable_reuse(drm_intel_bo *bo)
return bo->bufmgr->bo_disable_reuse(bo);
return 0;
}
+
+int
+drm_intel_get_pipe_from_crtc_id (drm_intel_bufmgr *bufmgr, int crtc_id)
+{
+ if (bufmgr->get_pipe_from_crtc_id)
+ return bufmgr->get_pipe_from_crtc_id(bufmgr, crtc_id);
+ return -1;
+}
+