mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 02:10:12 +01:00
anv/device: Improve version error reporting
This commit is contained in:
parent
c7f26bbed9
commit
fd99f3d658
1 changed files with 5 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue