summaryrefslogtreecommitdiff
path: root/intel
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2018-01-26 15:08:39 +0000
committerEric Engestrom <eric.engestrom@imgtec.com>2018-01-29 15:41:52 +0000
commit1d7bbf852094481a8f514ed786b7a7a8af67e5fe (patch)
treee8390c053121a6ccca2991e7c8027e1cfaafbe32 /intel
parentd2b0a4ec70d93040159af0cbc15717d35812ffc5 (diff)
always define HAVE_VALGRIND
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'intel')
-rw-r--r--intel/intel_bufmgr_gem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 71f140f5..386da30e 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -66,7 +66,7 @@
#include "i915_drm.h"
#include "uthash.h"
-#ifdef HAVE_VALGRIND
+#if HAVE_VALGRIND
#include <valgrind.h>
#include <memcheck.h>
#define VG(x) x
@@ -1629,7 +1629,7 @@ int
drm_intel_gem_bo_map_unsynchronized(drm_intel_bo *bo)
{
drm_intel_bufmgr_gem *bufmgr_gem = (drm_intel_bufmgr_gem *) bo->bufmgr;
-#ifdef HAVE_VALGRIND
+#if HAVE_VALGRIND
drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *) bo;
#endif
int ret;