X-Git-Url: https://git.ti.com/gitweb?p=glsdk%2Flibdrm.git;a=blobdiff_plain;f=intel%2Fintel_bufmgr_priv.h;h=febee0f7267267f441a1285ef2cbf08a131f1129;hp=475c402fbaeb4bb540497bf6b0550b087bd9c5dd;hb=10ce0ec18806ae32a5d615c693626a085b0dd7b8;hpb=1b064cc428f03f753699d4d9fbe60453891a8529 diff --git a/intel/intel_bufmgr_priv.h b/intel/intel_bufmgr_priv.h index 475c402f..febee0f7 100644 --- a/intel/intel_bufmgr_priv.h +++ b/intel/intel_bufmgr_priv.h @@ -216,6 +216,20 @@ struct _drm_intel_bufmgr { */ int (*bo_busy) (drm_intel_bo *bo); + /** + * Specify the volatility of the buffer. + * \param bo Buffer to create a name for + * \param madv The purgeable status + * + * Use I915_MADV_DONTNEED to mark the buffer as purgeable, and it will be + * reclaimed under memory pressure. If you subsequently require the buffer, + * then you must pass I915_MADV_WILLNEED to mark the buffer as required. + * + * Returns 1 if the buffer was retained, or 0 if it was discarded whilst + * marked as I915_MADV_DONTNEED. + */ + int (*bo_madvise) (drm_intel_bo *bo, int madv); + int (*check_aperture_space) (drm_intel_bo ** bo_array, int count); /**