projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cba90d4
)
[intel-gem] Don't calloc reloc buffers
author
Keith Packard
<keithp@keithp.com>
Sun, 18 May 2008 06:34:47 +0000
(23:34 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sun, 18 May 2008 06:34:47 +0000
(23:34 -0700)
Only a few relocations are typically used, so don't clear the
whole thing.
src/mesa/drivers/dri/intel/intel_bufmgr_gem.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c
b/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c
index a14f7830f984f451ad3d7728d5b4cb81006d1043..e08e3952bcf82a91925d61e18f5ba7a6fa6acb23 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_bufmgr_gem.c
+++ b/
src/mesa/drivers/dri/intel/intel_bufmgr_gem.c
@@
-245,9
+245,9
@@
intel_setup_reloc_list(dri_bo *bo)
dri_bo_gem *bo_gem = (dri_bo_gem *)bo;
dri_bufmgr_gem *bufmgr_gem = (dri_bufmgr_gem *)bo->bufmgr;
- bo_gem->relocs =
calloc(bufmgr_gem->max_relocs,
+ bo_gem->relocs =
malloc(bufmgr_gem->max_relocs *
sizeof(struct drm_i915_gem_relocation_entry));
- bo_gem->reloc_target_bo =
calloc(bufmgr_gem->max_relocs,
sizeof(dri_bo *));
+ bo_gem->reloc_target_bo =
malloc(bufmgr_gem->max_relocs *
sizeof(dri_bo *));
return 0;
}