From a4902d6b4bb54c90ef3d8fbbd2d44c1f648bb55a Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Fri, 29 May 2020 17:02:24 +1000 Subject: [PATCH] radv: fix regression with builtin cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: (cherry picked from commit e843303d6f18d56d7c412e6c879134f7b79372ac) --- .pick_status.json | 2 +- src/amd/vulkan/radv_meta.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index ebaf6b0214a..ca096292e1e 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -3271,7 +3271,7 @@ "description": "radv: fix regression with builtin cache", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": "cd61f5234d2c275b21c249fc2effc058a74ecf0a" }, diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c index de2f85148a6..cb39c92e903 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",