summaryrefslogtreecommitdiff
path: root/libdrm/intel/intel_bufmgr.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-10-01 19:09:26 -0700
committerEric Anholt <eric@anholt.net>2009-10-01 19:09:26 -0700
commit769b10578083aa7bbee0052246d8ea6000435ae8 (patch)
tree6346b9523b16eb522842c61afa4dd025d9e2559d /libdrm/intel/intel_bufmgr.c
parentac71f0849928f4b2fbb69c01304ac6f9df8916a1 (diff)
intel: Add a new function to check if a BO's reloc tree references some BO.
There are a bunch of places in GL where if we can't do this we have to flush the batchbuffer, and the cost of lookups here is outweighed by flush savings.
Diffstat (limited to 'libdrm/intel/intel_bufmgr.c')
-rw-r--r--libdrm/intel/intel_bufmgr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libdrm/intel/intel_bufmgr.c b/libdrm/intel/intel_bufmgr.c
index 219c7616..20e59b86 100644
--- a/libdrm/intel/intel_bufmgr.c
+++ b/libdrm/intel/intel_bufmgr.c
@@ -228,6 +228,12 @@ int drm_intel_bo_busy(drm_intel_bo *bo)
}
int
+drm_intel_bo_references(drm_intel_bo *bo, drm_intel_bo *target_bo)
+{
+ return bo->bufmgr->bo_references(bo, target_bo);
+}
+
+int
drm_intel_get_pipe_from_crtc_id (drm_intel_bufmgr *bufmgr, int crtc_id)
{
if (bufmgr->get_pipe_from_crtc_id)