From b85265bbc20db2896ab597ea45f919ddfffcb434 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 27 Jun 2025 09:17:06 -0600 Subject: [PATCH] gallivm: always use mkdir() instead of std::filesytem::create_directory() Suse Linux Enterprise 15 is still on g++ 7.5 so std::filesystem does not exist. Just use mkdir() instead. Signed-off-by: Brian Paul Tested-by: Mauro Rossi Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index cc9de691b2d..a2582fa8ba7 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -47,6 +47,7 @@ #include "util/u_math.h" #include "util/u_debug.h" +#include "driver_ddebug/dd_util.h" #include "lp_bld_debug.h" #include "lp_bld_intr.h" @@ -57,9 +58,6 @@ #include -#if !DETECT_OS_ANDROID -#include -#endif /** * Check alignment. @@ -379,11 +377,7 @@ lp_function_add_debug_info(gallivm_state *gallivm, LLVMValueRef func, LLVMTypeRe if (!gallivm->file) { uint32_t shader_index = p_atomic_add_return(&global_shader_index, 1); -#if !DETECT_OS_ANDROID - std::filesystem::create_directory(LP_NIR_SHADER_DUMP_DIR); -#else mkdir(LP_NIR_SHADER_DUMP_DIR, 0755); -#endif asprintf(&gallivm->file_name, "%s/%u.nir", LP_NIR_SHADER_DUMP_DIR, shader_index);