From 5ac46da58893e06b48071358a9070408e11e14cf Mon Sep 17 00:00:00 2001 From: Vandrus Zoltán Date: Wed, 31 Oct 2012 13:11:45 -0700 Subject: i965: Fix oversized initial allocation of the state cache table pointers. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55030 --- src/mesa/drivers/dri/i965/brw_state_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- cgit v1.2.3