v3dv: add support for valgrind macros

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga 2019-11-27 11:49:12 +01:00 committed by Marge Bot
parent 2f383f9747
commit 20363b0bb9
2 changed files with 9 additions and 0 deletions

View file

@ -65,6 +65,7 @@ v3dv_flags = ['-DV3D_VERSION=42']
v3dv_deps = [
dep_libdrm,
dep_valgrind,
idep_vulkan_util,
]

View file

@ -35,6 +35,14 @@
#include <vulkan/vulkan.h>
#include <vulkan/vk_icd.h>
#ifdef HAVE_VALGRIND
#include <valgrind/valgrind.h>
#include <valgrind/memcheck.h>
#define VG(x) x
#else
#define VG(x) ((void)0)
#endif
#include "common/v3d_device_info.h"
#include "vk_debug_report.h"