etnaviv, v3d: Fix valgrind include paths.

dep_valgrind gives you -I/usr/include/valgrind (or whatever) so if
valgrind/ wasn't in the search path anyway, these includes would fail.
Found in CI when adding valgrind to the build images.

Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7936>
This commit is contained in:
Eric Anholt 2020-11-30 12:40:34 -08:00 committed by Marge Bot
parent ada9be1ec9
commit 547d11de54
2 changed files with 3 additions and 3 deletions

View File

@ -41,8 +41,8 @@
#include <xf86drm.h>
#ifdef HAVE_VALGRIND
#include <valgrind/valgrind.h>
#include <valgrind/memcheck.h>
#include <valgrind.h>
#include <memcheck.h>
#define VG(x) x
#else
#define VG(x) ((void)0)

View File

@ -217,7 +217,7 @@ static inline void get_abs_timeout(struct drm_etnaviv_timespec *tv, uint64_t ns)
}
#if HAVE_VALGRIND
# include <valgrind/memcheck.h>
# include <memcheck.h>
/*
* For tracking the backing memory (if valgrind enabled, we force a mmap