Browse Source

anv/device: Fix version check

The bottom-end check was wrong so it was only working on <= 1.0.0.  Oops.
tags/12.0-branchpoint
Jason Ekstrand 11 years ago
parent
commit
a19ceee46c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/vulkan/anv_device.c

+ 1
- 1
src/vulkan/anv_device.c View File

assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO); assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO);


uint32_t client_version = pCreateInfo->pApplicationInfo->apiVersion; uint32_t client_version = pCreateInfo->pApplicationInfo->apiVersion;
if (VK_MAKE_VERSION(1, 0, 0) < client_version ||
if (VK_MAKE_VERSION(1, 0, 0) > client_version ||
client_version > VK_MAKE_VERSION(1, 0, 2)) { client_version > VK_MAKE_VERSION(1, 0, 2)) {
return vk_error(VK_ERROR_INCOMPATIBLE_DRIVER); return vk_error(VK_ERROR_INCOMPATIBLE_DRIVER);
} }

Loading…
Cancel
Save