Browse Source

i965: Fix oversized initial allocation of the state cache table pointers.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55030
tags/gles3-fmt-v1
Vandrus Zoltán 13 years ago
parent
commit
5ac46da588
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/mesa/drivers/dri/i965/brw_state_cache.c

+ 1
- 1
src/mesa/drivers/dri/i965/brw_state_cache.c View File

@@ -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",

Loading…
Cancel
Save