diff options
Diffstat (limited to 'src/vulkan/anv_allocator.c')
-rw-r--r-- | src/vulkan/anv_allocator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vulkan/anv_allocator.c b/src/vulkan/anv_allocator.c index 05126305b51..db04a2c236c 100644 --- a/src/vulkan/anv_allocator.c +++ b/src/vulkan/anv_allocator.c @@ -697,6 +697,7 @@ anv_state_stream_finish(struct anv_state_stream *stream) block = stream->current_block; while (block != NULL_BLOCK) { + assert(block % stream->block_pool->block_size == 0); sb = stream->block_pool->map + block; next_block = VG_NOACCESS_READ(&sb->next); VG(VALGRIND_MEMPOOL_FREE(stream, VG_NOACCESS_READ(&sb->_vg_ptr))); |