mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
anv/device: Add a better version check.
We now check that the requested version is precicely within the range of versions that we support.
This commit is contained in:
parent
6286a74f6b
commit
608b411e9f
1 changed files with 4 additions and 1 deletions
|
|
@ -214,8 +214,11 @@ VkResult anv_CreateInstance(
|
|||
|
||||
assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO);
|
||||
|
||||
if (pCreateInfo->pApplicationInfo->apiVersion > VK_MAKE_VERSION(1, 0, 0xfff))
|
||||
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);
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < pCreateInfo->enabledExtensionCount; i++) {
|
||||
bool found = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue