anv/reloc_list: Make valgrind explicitly check relocation data
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 9 Jan 2016 00:44:54 +0000 (16:44 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 9 Jan 2016 00:44:54 +0000 (16:44 -0800)
src/vulkan/anv_batch_chain.c

index 41bae98139703ca86b40003a2c56cbeac2cba8a0..466a3624234b61070f8ad5b19d7b09b47292898b 100644 (file)
@@ -160,6 +160,7 @@ anv_reloc_list_add(struct anv_reloc_list *list,
    entry->presumed_offset = target_bo->offset;
    entry->read_domains = 0;
    entry->write_domain = 0;
+   VG(VALGRIND_CHECK_MEM_IS_DEFINED(entry, sizeof(*entry)));
 
    return target_bo->offset + delta;
 }