anv: Fix build without VALGRIND
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 6 Jan 2016 18:27:57 +0000 (10:27 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 6 Jan 2016 23:54:51 +0000 (15:54 -0800)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/vulkan/anv_allocator.c

index e49a684aaefb96eb735f19c15dc73684e902edd3..4be149ea695aa783eb185a30a9d6aa5966d09006 100644 (file)
@@ -740,7 +740,7 @@ anv_state_stream_alloc(struct anv_state_stream *stream,
       uint32_t block = anv_block_pool_alloc(stream->block_pool);
       sb = stream->block_pool->map + block;
 
-      VALGRIND_MAKE_MEM_UNDEFINED(sb, sizeof(*sb));
+      VG(VALGRIND_MAKE_MEM_UNDEFINED(sb, sizeof(*sb)));
       sb->next = stream->block;
       sb->offset = block;
       VG(sb->_vg_ptr = NULL);