projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a937da
)
i965: Fix oversized initial allocation of the state cache table pointers.
author
Vandrus Zoltán
<szunti@gmail.com>
Wed, 31 Oct 2012 20:11:45 +0000
(13:11 -0700)
committer
Eric Anholt
<eric@anholt.net>
Sun, 4 Nov 2012 20:24:13 +0000
(12:24 -0800)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55030
src/mesa/drivers/dri/i965/brw_state_cache.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_state_cache.c
b/src/mesa/drivers/dri/i965/brw_state_cache.c
index d9bbcd934ca0035c5a93543caa521bee277238c6..d44b2b7c5b926808d25f5f84b5dd1ebab9317749 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_state_cache.c
+++ b/
src/mesa/drivers/dri/i965/brw_state_cache.c
@@
-336,7
+336,7
@@
brw_init_caches(struct brw_context *brw)
cache->size = 7;
cache->n_items = 0;
cache->items =
- calloc(1, cache->size * sizeof(struct brw_cache_item));
+ calloc(1, cache->size * sizeof(struct brw_cache_item
*
));
cache->bo = drm_intel_bo_alloc(intel->bufmgr,
"program cache",