From: Timothy Arceri Date: Fri, 29 May 2020 07:02:24 +0000 (+1000) Subject: radv: fix regression with builtin cache X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e843303d6f18d56d7c412e6c879134f7b79372ac;p=mesa.git radv: fix regression with builtin cache If the ~/.cache dir already exists continue on without failing. Fixes: cd61f5234d2c ("radv: Handle failing to create .cache dir.") Tested-by: Dieter Nützel Reviewed-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c index 6d2f24d148f..f0156829526 100644 --- a/src/amd/vulkan/radv_meta.c +++ b/src/amd/vulkan/radv_meta.c @@ -262,7 +262,7 @@ radv_builtin_cache_path(char *path) strcpy(path, pwd.pw_dir); strcat(path, "/.cache"); - if (mkdir(path, 0755)) + if (mkdir(path, 0755) && errno != EEXIST) return false; ret = snprintf(path, PATH_MAX + 1, "%s%s%zd",