1 $NetBSD: patch-src_gallium_drivers_freedreno_freedreno__util.h,v 1.1 2022/03/13 15:52:50 tnn Exp $
3 gettid() is linux-specific
5 --- src/gallium/drivers/freedreno/freedreno_util.h.orig 2022-01-12 21:32:28.000000000 +0000
6 +++ src/gallium/drivers/freedreno/freedreno_util.h
7 @@ -108,6 +108,7 @@ extern bool fd_binning_enabled;
9 #include <sys/syscall.h>
11 +#if defined(__linux__)
12 #define DBG(fmt, ...) \
15 @@ -115,6 +116,16 @@ extern bool fd_binning_enabled;
16 __FUNCTION__, __LINE__, \
20 +#define DBG(fmt, ...) \
23 + mesa_logi("%s:%d: " fmt, \
24 + __FUNCTION__, __LINE__, \
30 #define perf_debug_message(debug, type, ...) \