tu/kgsl: Fix memory overwrite with vkFlushMappedMemoryRanges when more than 1 range
kgsl_sync_cache, which is used by vkFlushMappedMemoryRanges, was not respecting the array count when allocating the sync_list. This was causing some memory overwrite issues. This fix makes the vk_zalloc respect the array size during allocation.
Fixes: 5a594109 ("turnip: add cached and cached-coherent memory types")
Edited by Shan-Min Chao