diff options
author | Jason Ekstrand <[email protected]> | 2016-02-02 13:15:18 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-02-02 13:16:13 -0800 |
commit | fd99f3d65856288aaea8076cbff56f76bfb7cfa1 (patch) | |
tree | 938a9dfa9af458846908c8b2e138f37c6af0916c /src | |
parent | c7f26bbed9ad6cd382ed5be666f83ba276de8b03 (diff) |
anv/device: Improve version error reporting
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/anv_device.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 82514677977..c39c506c78f 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -217,7 +217,11 @@ VkResult anv_CreateInstance( uint32_t client_version = pCreateInfo->pApplicationInfo->apiVersion; if (VK_MAKE_VERSION(1, 0, 0) > client_version || client_version > VK_MAKE_VERSION(1, 0, 2)) { - return vk_error(VK_ERROR_INCOMPATIBLE_DRIVER); + return vk_errorf(VK_ERROR_INCOMPATIBLE_DRIVER, + "Client requested version %d.%d.%d", + VK_VERSION_MAJOR(client_version), + VK_VERSION_MINOR(client_version), + VK_VERSION_PATCH(client_version)); } for (uint32_t i = 0; i < pCreateInfo->enabledExtensionCount; i++) { |