aboutsummaryrefslogtreecommitdiff
path: root/libdrm/intel/intel_bufmgr_priv.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-08-27 18:32:07 -0700
committerEric Anholt <eric@anholt.net>2009-08-28 14:56:41 -0700
commit8214a65ad1f4ccd4966e0def0d43f0c4289e4bc6 (patch)
treee368e75829a0fa3722d89f9c0d0e003083457f57 /libdrm/intel/intel_bufmgr_priv.h
parent19d6fadfa29993b261ebac2869b2289f6d3091c3 (diff)
Add drm_intel_bo_busy to query whether mapping a BO would block.
Diffstat (limited to 'libdrm/intel/intel_bufmgr_priv.h')
-rw-r--r--libdrm/intel/intel_bufmgr_priv.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libdrm/intel/intel_bufmgr_priv.h b/libdrm/intel/intel_bufmgr_priv.h
index 0098076e..af17c12d 100644
--- a/libdrm/intel/intel_bufmgr_priv.h
+++ b/libdrm/intel/intel_bufmgr_priv.h
@@ -177,6 +177,12 @@ struct _drm_intel_bufmgr {
*/
int (*bo_flink)(drm_intel_bo *bo, uint32_t *name);
+ /**
+ * Returns 1 if mapping the buffer for write could cause the process
+ * to block, due to the object being active in the GPU.
+ */
+ int (*bo_busy)(drm_intel_bo *bo);
+
int (*check_aperture_space)(drm_intel_bo **bo_array, int count);
/**
@@ -200,7 +206,7 @@ struct _drm_intel_bufmgr {
* \param crtc_id the crtc identifier
*/
int (*get_pipe_from_crtc_id)(drm_intel_bufmgr *bufmgr, int crtc_id);
-
+
int debug; /**< Enables verbose debugging printouts */
};