etnaviv: use stderr for compiler error logging
authorItalo Nicola <italonicola@collabora.com>
Thu, 24 Nov 2022 03:35:18 +0000 (03:35 +0000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Apr 2023 16:51:35 +0000 (16:51 +0000)
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22210>

src/gallium/drivers/etnaviv/etnaviv_compiler_nir.h

index 8c30ab1..4d6ff43 100644 (file)
@@ -31,6 +31,7 @@
 #include "etnaviv_asm.h"
 #include "etnaviv_compiler.h"
 #include "util/compiler.h"
+#include "util/log.h"
 
 struct etna_compile {
    nir_shader *nir;
@@ -60,7 +61,7 @@ struct etna_compile {
 };
 
 #define compile_error(ctx, args...) ({ \
-   printf(args); \
+   mesa_loge(args); \
    ctx->error = true; \
    abort(); \
 })