From: Vandrus Zoltán Date: Wed, 31 Oct 2012 20:11:45 +0000 (-0700) Subject: i965: Fix oversized initial allocation of the state cache table pointers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ac46da58893e06b48071358a9070408e11e14cf;p=mesa.git i965: Fix oversized initial allocation of the state cache table pointers. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55030 --- 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",