summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2008-10-24 16:35:00 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2008-10-24 16:41:54 +0800
commitb7d54b1dba8eba24da1b9cdd2116a26b98365b81 (patch)
tree9784ca3308746c05c2bb176319cb816b3b1c098a /libdrm
parent8256c347cc80db0371b40b34ee8a163908d50079 (diff)
intel: Also total child_size of the target_bos. Partial fix #17964.
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/intel/intel_bufmgr_fake.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdrm/intel/intel_bufmgr_fake.c b/libdrm/intel/intel_bufmgr_fake.c
index c82ce5ae..c9545b35 100644
--- a/libdrm/intel/intel_bufmgr_fake.c
+++ b/libdrm/intel/intel_bufmgr_fake.c
@@ -1193,9 +1193,10 @@ dri_fake_emit_reloc(dri_bo *reloc_buf,
dri_fake_bo_reference_locked(target_buf);
- if (!target_fake->is_static)
+ if (!target_fake->is_static) {
reloc_fake->child_size += ALIGN(target_buf->size, target_fake->alignment);
-
+ reloc_fake->child_size += target_fake->child_size;
+ }
r->target_buf = target_buf;
r->offset = offset;
r->last_target_offset = target_buf->offset;