aboutsummaryrefslogtreecommitdiff
path: root/libdrm/intel/intel_bufmgr_priv.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-10-14 13:18:11 -0700
committerEric Anholt <eric@anholt.net>2008-10-14 13:23:04 -0700
commit993383873c215ab11975d98b93f131a4e3ea7ce6 (patch)
treef99889520b7b0127de0688f21a80d0780eea649c /libdrm/intel/intel_bufmgr_priv.h
parentd9c2f65dd8e50736a33e97a55c257ef6843e1ce7 (diff)
intel: Add interface for getting tiling mode of a bo.
Diffstat (limited to 'libdrm/intel/intel_bufmgr_priv.h')
-rw-r--r--libdrm/intel/intel_bufmgr_priv.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libdrm/intel/intel_bufmgr_priv.h b/libdrm/intel/intel_bufmgr_priv.h
index 7f39bfc2..cbf3b311 100644
--- a/libdrm/intel/intel_bufmgr_priv.h
+++ b/libdrm/intel/intel_bufmgr_priv.h
@@ -150,6 +150,15 @@ struct _dri_bufmgr {
*/
int (*bo_set_tiling) (dri_bo *bo, uint32_t *tiling_mode);
/**
+ * Get the current tiling (and resulting swizzling) mode for the bo.
+ *
+ * \param buf Buffer to get tiling mode for
+ * \param tiling_mode returned tiling mode
+ * \param swizzle_mode returned swizzling mode
+ */
+ int (*bo_get_tiling) (dri_bo *bo, uint32_t *tiling_mode,
+ uint32_t *swizzle_mode);
+ /**
* Create a visible name for a buffer which can be used by other apps
*
* \param buf Buffer to create a name for