summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorVandrus Zoltán <[email protected]>2012-10-31 13:11:45 -0700
committerEric Anholt <[email protected]>2012-11-04 12:24:13 -0800
commit5ac46da58893e06b48071358a9070408e11e14cf (patch)
treea48ce454a554bca2d9893249685848dc8d760538 /src/mesa/drivers
parent3a937daf3f0e8e497431d371d4f1ea6a0ffc29ff (diff)
i965: Fix oversized initial allocation of the state cache table pointers.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55030
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_state_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c b/src/mesa/drivers/dri/i965/brw_state_cache.c
index d9bbcd934ca..d44b2b7c5b9 100644
--- 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",