Merge remote branch 'origin/master' into libdrm
[glsdk/libdrm.git] / intel / intel_bufmgr.c
index 2469cd840c65bd65df718bc2a23520e7827442a4..618177392f95a7aecf69dbfc2b7116626202be2d 100644 (file)
@@ -224,6 +224,13 @@ int drm_intel_bo_busy(drm_intel_bo *bo)
        return 0;
 }
 
+int drm_intel_bo_madvise(drm_intel_bo *bo, int madv)
+{
+       if (bo->bufmgr->bo_madvise)
+               return bo->bufmgr->bo_madvise(bo, madv);
+       return -1;
+}
+
 int drm_intel_bo_references(drm_intel_bo *bo, drm_intel_bo *target_bo)
 {
        return bo->bufmgr->bo_references(bo, target_bo);