From 920fb771d499df1b951e9c302ebb22eb413d9fa8 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 8 Jun 2015 13:50:52 -0700 Subject: [PATCH] vk/allocator: Make the use of NULL_BLOCK in state_stream_finish explicit --- src/vulkan/allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/allocator.c b/src/vulkan/allocator.c index 7fe7423b531..1f16cb5b6a7 100644 --- a/src/vulkan/allocator.c +++ b/src/vulkan/allocator.c @@ -583,7 +583,7 @@ anv_state_stream_finish(struct anv_state_stream *stream) uint32_t block, next_block; block = stream->current_block; - while (block != 1) { + while (block != NULL_BLOCK) { sb = stream->block_pool->map + block; next_block = VG_NOACCESS_READ(&sb->next); VG(VALGRIND_FREELIKE_BLOCK(VG_NOACCESS_READ(&sb->_vg_ptr), 0)); -- 2.30.2