mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
v3dv: add support for valgrind macros
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
parent
2f383f9747
commit
20363b0bb9
2 changed files with 9 additions and 0 deletions
|
|
@ -65,6 +65,7 @@ v3dv_flags = ['-DV3D_VERSION=42']
|
|||
|
||||
v3dv_deps = [
|
||||
dep_libdrm,
|
||||
dep_valgrind,
|
||||
idep_vulkan_util,
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue