Mesa (master): radv: Handle failing to create .cache dir.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon May 25 11:25:15 UTC 2020
Module: Mesa
Branch: master
Commit: cd61f5234d2c275b21c249fc2effc058a74ecf0a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd61f5234d2c275b21c249fc2effc058a74ecf0a
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date: Sat May 23 02:26:04 2020 +0200
radv: Handle failing to create .cache dir.
Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5181>
---
src/amd/vulkan/radv_meta.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c
index 0acffbc5ccd..6d2f24d148f 100644
--- a/src/amd/vulkan/radv_meta.c
+++ b/src/amd/vulkan/radv_meta.c
@@ -262,7 +262,8 @@ radv_builtin_cache_path(char *path)
strcpy(path, pwd.pw_dir);
strcat(path, "/.cache");
- mkdir(path, 0755);
+ if (mkdir(path, 0755))
+ return false;
ret = snprintf(path, PATH_MAX + 1, "%s%s%zd",
pwd.pw_dir, suffix2, sizeof(void *) * 8);
More information about the mesa-commit
mailing list