freedreno/ir3: Move the assert output to mesa_loge().

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9262>
This commit is contained in:
Emma Anholt 2021-06-16 09:49:01 -07:00 committed by Marge Bot
parent ecf807c900
commit 3863008c22
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@
#include <assert.h>
#include <util/u_debug.h>
#include <util/log.h>
#include "isa/isa.h"
@ -551,7 +552,7 @@ void
ir3_assert_handler(const char *expr, const char *file, int line,
const char *func)
{
fprintf(stdout, "\n%s:%u: %s: Assertion `%s' failed.\n", file, line, func, expr);
mesa_loge("%s:%u: %s: Assertion `%s' failed.", file, line, func, expr);
if (jmp_env_valid)
longjmp(jmp_env, 1);
abort();