diff options
author | Jason Ekstrand <[email protected]> | 2015-06-08 13:50:52 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-06-08 13:53:19 -0700 |
commit | 920fb771d499df1b951e9c302ebb22eb413d9fa8 (patch) | |
tree | a82158407f71bb9ee039fef72a6ed75754fa7127 /src/vulkan | |
parent | 52637c0996a27ede5ec8fcd84d41e4875fb1b368 (diff) |
vk/allocator: Make the use of NULL_BLOCK in state_stream_finish explicit
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/allocator.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |