From 993383873c215ab11975d98b93f131a4e3ea7ce6 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 14 Oct 2008 13:18:11 -0700 Subject: intel: Add interface for getting tiling mode of a bo. --- libdrm/intel/intel_bufmgr_priv.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libdrm/intel/intel_bufmgr_priv.h') 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 @@ -149,6 +149,15 @@ struct _dri_bufmgr { * \param tiling_mode desired, and returned tiling mode */ 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 * -- cgit v1.2.3