mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
gallium/u_threaded: use mesa_log for debug msgs
On android, this will show up in logcat, rather than being lost into the ether. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9323>
This commit is contained in:
parent
f2f72ec3fe
commit
9425b1343e
1 changed files with 3 additions and 2 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include "util/u_inlines.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_upload_mgr.h"
|
||||
#include "util/log.h"
|
||||
#include "compiler/shader_info.h"
|
||||
|
||||
/* 0 = disabled, 1 = assertions, 2 = printfs */
|
||||
|
|
@ -42,7 +43,7 @@
|
|||
#endif
|
||||
|
||||
#if TC_DEBUG >= 2
|
||||
#define tc_printf printf
|
||||
#define tc_printf mesa_logi
|
||||
#define tc_asprintf asprintf
|
||||
#define tc_strcmp strcmp
|
||||
#else
|
||||
|
|
@ -348,7 +349,7 @@ _tc_sync(struct threaded_context *tc, UNUSED const char *info, UNUSED const char
|
|||
p_atomic_inc(&tc->num_syncs);
|
||||
|
||||
if (tc_strcmp(func, "tc_destroy") != 0) {
|
||||
tc_printf("sync %s %s\n", func, info);
|
||||
tc_printf("sync %s %s", func, info);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue