diff options
author | Kenneth Graunke <[email protected]> | 2018-04-10 00:39:27 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:05 -0800 |
commit | 19d11a6df38cf8fd23faf8164fba31dbf0b1be87 (patch) | |
tree | 9f705cc0f12a1c8b4e635078f6d1584caac29725 | |
parent | 010e845af7bc4f0557122e34a3cdb7fe46a4b716 (diff) |
iris: fix index
-rw-r--r-- | src/gallium/drivers/iris/iris_bufmgr.c | 4 |
1 files 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++; |