vk/allocator: Make the use of NULL_BLOCK in state_stream_finish explicit

This commit is contained in:
Jason Ekstrand 2015-06-08 13:50:52 -07:00
parent 52637c0996
commit 920fb771d4

View 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));