anv: remove needless VALGRIND_MAKE_MEM_DEFINED

This is already invoked in the following VG_NOACCESS_READ() call.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Juan A. Suarez Romero 2017-04-11 13:15:31 +02:00
parent 4ee7c2c284
commit 8d7a82ae32
1 changed files with 0 additions and 1 deletions

View 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));