From 4aafb5fcc302c5d482eb2401ab1bef9675d2ebec Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Fri, 30 May 2025 08:58:22 +0200 Subject: [PATCH] llvmpipe: Define LP_NIR_SHADER_DUMP_DIR differently on Android Reference Android temporary path /data/local/tmp is used for Android builds Backport-to: 25.1 Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_debug.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.h b/src/gallium/auxiliary/gallivm/lp_bld_debug.h index ab1ea55b690..de42f7309be 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.h @@ -33,6 +33,7 @@ #include "gallivm/lp_bld_init.h" #include "util/compiler.h" +#include "util/detect_os.h" #include "util/u_string.h" #include @@ -103,7 +104,11 @@ void lp_function_add_debug_info(struct gallivm_state *gallivm, LLVMValueRef func, LLVMTypeRef func_type); +#if DETECT_OS_ANDROID +#define LP_NIR_SHADER_DUMP_DIR "/data/local/tmp/nir_shaders" +#else #define LP_NIR_SHADER_DUMP_DIR "/tmp/nir_shaders" +#endif #ifdef __cplusplus