[Mesa-dev] [PATCH] anv: remove needless VALGRIND_MAKE_MEM_DEFINED
Jason Ekstrand
jason at jlekstrand.net
Tue Apr 11 15:09:03 UTC 2017
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
On Tue, Apr 11, 2017 at 4:19 AM, Juan A. Suarez Romero <jasuarez at igalia.com>
wrote:
> This is already invoked in the following VG_NOACCESS_READ() call.
> ---
> src/intel/vulkan/anv_allocator.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/src/intel/vulkan/anv_allocator.c b/src/intel/vulkan/anv_
> allocator.c
> index 78327df..784191e 100644
> --- a/src/intel/vulkan/anv_allocator.c
> +++ b/src/intel/vulkan/anv_allocator.c
> @@ -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));
> --
> 2.9.3
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170411/0db4f04d/attachment.html>
More information about the mesa-dev
mailing list