[Intel-gfx] [PATCH 3/5] intel: Pack the map_count in next to reloc_count on 64-bit.
Eric Anholt
eric at anholt.net
Tue Jun 18 22:32:55 CEST 2013
Saves another 4 bytes on a drm_intel_bo.
---
intel/intel_bufmgr_gem.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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 */
--
1.8.3.rc0
More information about the Intel-gfx
mailing list