freedreno: Add tid to DBG() msgs

I keep hacking this up locally when debugging TC sort of issues.  Which
is maybe a sign that we should just add this upstream.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11200>
This commit is contained in:
Rob Clark 2021-06-09 10:11:05 -07:00
parent 97222bcd36
commit cbb5280a00
1 changed files with 5 additions and 1 deletions

View File

@ -104,10 +104,14 @@ extern bool fd_binning_enabled;
#define FD_DBG(category) unlikely(fd_mesa_debug &FD_DBG_##category)
#include <unistd.h>
#include <sys/types.h>
#define DBG(fmt, ...) \
do { \
if (FD_DBG(MSGS)) \
mesa_logd("%s:%d: " fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
mesa_logd("%5d: %s:%d: " fmt, gettid(), __FUNCTION__, __LINE__, \
##__VA_ARGS__); \
} while (0)
#define perf_debug_ctx(ctx, ...) \