From 19d11a6df38cf8fd23faf8164fba31dbf0b1be87 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 10 Apr 2018 00:39:27 -0700 Subject: [PATCH] iris: fix index --- src/gallium/drivers/iris/iris_bufmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; -- 2.30.2