Mesa (master): radv: fix regression with builtin cache
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat May 30 04:14:24 UTC 2020
Module: Mesa
Branch: master
Commit: e843303d6f18d56d7c412e6c879134f7b79372ac
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e843303d6f18d56d7c412e6c879134f7b79372ac
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Fri May 29 17:02:24 2020 +1000
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 <Dieter at nuetzel-hh.de>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5249>
---
src/amd/vulkan/radv_meta.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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",
More information about the mesa-commit
mailing list