vk/allocator: Make the use of NULL_BLOCK in state_stream_finish explicit
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 8 Jun 2015 20:50:52 +0000 (13:50 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 8 Jun 2015 20:53:19 +0000 (13:53 -0700)
src/vulkan/allocator.c

index 7fe7423b531598011a6db89052d3ca86f59d34f8..1f16cb5b6a7003c7ee2757fe5050017fd5ac53d4 100644 (file)
@@ -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));