anv: remove needless VALGRIND_MAKE_MEM_DEFINED
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Tue, 11 Apr 2017 11:15:31 +0000 (13:15 +0200)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Tue, 11 Apr 2017 15:21:57 +0000 (17:21 +0200)
This is already invoked in the following VG_NOACCESS_READ() call.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_allocator.c

index 78327df34392b75621ea04bc935441a78bf68f53..784191ed97a3c58bf9713e18cad482ce6590ba36 100644 (file)
@@ -758,7 +758,6 @@ anv_state_stream_finish(struct anv_state_stream *stream)
 
    struct anv_state_stream_block *next = stream->block;
    while (next != NULL) {
-      VG(VALGRIND_MAKE_MEM_DEFINED(next, sizeof(*next)));
       struct anv_state_stream_block sb = VG_NOACCESS_READ(next);
       VG(VALGRIND_MEMPOOL_FREE(stream, sb._vg_ptr));
       VG(VALGRIND_MAKE_MEM_UNDEFINED(next, block_size));