aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Kniager <jeremyk@lunarg.com>2019-06-26 10:55:29 -0600
committerjeremyk-lunarg <jeremyk@lunarg.com>2019-06-26 15:11:53 -0600
commitae236040325407e2d771d7a8fd51e560398a8e33 (patch)
treea34724b9d13e5a0a0836346863560b278bf66144
parent1e70b573d94b76d8d50e0372e01cb7567ba3de43 (diff)
downloadvulkan-tools-ae236040325407e2d771d7a8fd51e560398a8e33.tar.gz
vulkaninfo: Add more descriptive error message
Issue #207 mentions that one of the main problems users encounter when troubleshooting is a failure to create a Vulkan instance, and suggests that a statement be added to this error message that describes the most common causes of this problem. This commit adds this additional statement to the current error message. Change-Id: I2fccf00a8d9895a602fad40913f2380fc1c0a862
-rw-r--r--vulkaninfo/vulkaninfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vulkaninfo/vulkaninfo.c b/vulkaninfo/vulkaninfo.c
index 99e4dbee..0da527fb 100644
--- a/vulkaninfo/vulkaninfo.c
+++ b/vulkaninfo/vulkaninfo.c
@@ -917,6 +917,9 @@ static void AppCreateInstance(struct AppInstance *inst) {
VkResult err = vkCreateInstance(&inst_info, NULL, &inst->instance);
if (err == VK_ERROR_INCOMPATIBLE_DRIVER) {
fprintf(stderr, "Cannot create Vulkan instance.\n");
+ fprintf(stderr,
+ "This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does "
+ "not support Vulkan.\n");
ERR_EXIT(err);
} else if (err) {
ERR_EXIT(err);