diff mbox

[3/5] intel: Pack the map_count in next to reloc_count on 64-bit.

Message ID 1371587577-10003-3-git-send-email-eric@anholt.net (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Anholt June 18, 2013, 8:32 p.m. UTC
Saves another 4 bytes on a drm_intel_bo.
---
 intel/intel_bufmgr_gem.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index f068df6..5e087bc 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -174,11 +174,13 @@  struct _drm_intel_bo_gem {
 	drm_intel_reloc_target *reloc_target_info;
 	/** Number of entries in relocs */
 	int reloc_count;
+
+	int map_count;
 	/** Mapped address for the buffer, saved across map/unmap cycles */
 	void *mem_virtual;
 	/** GTT virtual address for the buffer, saved across map/unmap cycles */
 	void *gtt_virtual;
-	int map_count;
+
 	drmMMListHead vma_list;
 
 	/** BO cache list */