[Mesa-dev] [PATCH] anv/allocator: Only write to _vg_ptr if we have valgrind
Jason Ekstrand
jason at jlekstrand.net
Fri May 5 19:12:41 UTC 2017
This fixes the build when not building against valgrind headers.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100945
---
src/intel/vulkan/anv_allocator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/anv_allocator.c b/src/intel/vulkan/anv_allocator.c
index 4d59260..5e5e079 100644
--- a/src/intel/vulkan/anv_allocator.c
+++ b/src/intel/vulkan/anv_allocator.c
@@ -929,7 +929,7 @@ anv_state_stream_alloc(struct anv_state_stream *stream,
VG_NOACCESS_WRITE(&sb->block, stream->block);
VG_NOACCESS_WRITE(&sb->next, stream->block_list);
stream->block_list = sb;
- VG_NOACCESS_WRITE(&sb->_vg_ptr, NULL);
+ VG(VG_NOACCESS_WRITE(&sb->_vg_ptr, NULL));
VG(VALGRIND_MAKE_MEM_NOACCESS(stream->block.map, stream->block_size));
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list