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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35208>
This commit is contained in:
Mauro Rossi 2025-05-30 08:58:22 +02:00 committed by Marge Bot
parent 542836afe5
commit 4aafb5fcc3

View file

@ -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 <llvm-c/DebugInfo.h>
@ -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