projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52637c0
)
vk/allocator: Make the use of NULL_BLOCK in state_stream_finish explicit
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 8 Jun 2015 20:50:52 +0000
(13:50 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 8 Jun 2015 20:53:19 +0000
(13:53 -0700)
src/vulkan/allocator.c
patch
|
blob
|
history
diff --git
a/src/vulkan/allocator.c
b/src/vulkan/allocator.c
index 7fe7423b531598011a6db89052d3ca86f59d34f8..1f16cb5b6a7003c7ee2757fe5050017fd5ac53d4 100644
(file)
--- 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));