From: Kenneth Graunke Date: Tue, 10 Apr 2018 07:39:27 +0000 (-0700) Subject: iris: fix index X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19d11a6df38cf8fd23faf8164fba31dbf0b1be87;p=mesa.git iris: fix index --- diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index cd31227a10f..1ba63ee98a1 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -1386,8 +1386,8 @@ add_bucket(struct iris_bufmgr *bufmgr, int size) assert(i < ARRAY_SIZE(bufmgr->cache_bucket)); list_inithead(&bufmgr->cache_bucket[i].head); - for (int i = 0; i < IRIS_MEMZONE_COUNT; i++) - util_dynarray_init(&bufmgr->cache_bucket[i].vma_list[i], NULL); + for (int z = 0; z < IRIS_MEMZONE_COUNT; z++) + util_dynarray_init(&bufmgr->cache_bucket[i].vma_list[z], NULL); bufmgr->cache_bucket[i].size = size; bufmgr->num_buckets++;