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

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 18 18:42:26 UTC 2021


Module: Mesa
Branch: main
Commit: 3863008c22375d9cc1ecfab2a816c49c8787b83f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3863008c22375d9cc1ecfab2a816c49c8787b83f

Author: Emma Anholt <emma at anholt.net>
Date:   Wed Jun 16 09:49:01 2021 -0700

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

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9262>

---

 src/freedreno/ir3/disasm-a3xx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/freedreno/ir3/disasm-a3xx.c b/src/freedreno/ir3/disasm-a3xx.c
index 3f2678376ee..f0b9731fee1 100644
--- a/src/freedreno/ir3/disasm-a3xx.c
+++ b/src/freedreno/ir3/disasm-a3xx.c
@@ -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();



More information about the mesa-commit mailing list