aboutsummaryrefslogtreecommitdiff
path: root/intel/intel_bufmgr_priv.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2009-11-20 17:09:03 -0500
committerKristian Høgsberg <krh@bitplanet.net>2009-11-20 17:09:03 -0500
commit10ce0ec18806ae32a5d615c693626a085b0dd7b8 (patch)
tree0511e492b1235ef8d45cb7997035421c409a26b5 /intel/intel_bufmgr_priv.h
parent1b064cc428f03f753699d4d9fbe60453891a8529 (diff)
parentb4312b639d56a6cad78953af0fd4f863182007e3 (diff)
Merge remote branch 'origin/master' into libdrm
Diffstat (limited to 'intel/intel_bufmgr_priv.h')
-rw-r--r--intel/intel_bufmgr_priv.h14
1 files changed, 14 insertions, 0 deletions
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);
/**