From: Jason Ekstrand Date: Mon, 8 Jun 2015 20:50:52 +0000 (-0700) Subject: vk/allocator: Make the use of NULL_BLOCK in state_stream_finish explicit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=920fb771d499df1b951e9c302ebb22eb413d9fa8;p=mesa.git vk/allocator: Make the use of NULL_BLOCK in state_stream_finish explicit --- 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));