summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-12-01 13:58:25 -0800
committerJason Ekstrand <[email protected]>2015-12-03 13:43:53 -0800
commit9349625d60ff8a2476e062ba4038cd81ee2394e2 (patch)
treeb733ad64b200ccca1bf49cf45ae996befb8da7f3 /src
parentc30a0218202d65f4ceaa8d9c0d2afc8b2d0c0621 (diff)
vk/0.210.0: Rework VkInstanceCreateInfo
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/anv_device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c
index c3dcd9f56cc..852792db413 100644
--- a/src/vulkan/anv_device.c
+++ b/src/vulkan/anv_device.c
@@ -194,10 +194,10 @@ VkResult anv_CreateInstance(
assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO);
- if (pCreateInfo->pAppInfo->apiVersion != VK_MAKE_VERSION(0, 170, 2))
+ if (pCreateInfo->pApplicationInfo->apiVersion != VK_MAKE_VERSION(0, 170, 2))
return vk_error(VK_ERROR_INCOMPATIBLE_DRIVER);
- for (uint32_t i = 0; i < pCreateInfo->extensionCount; i++) {
+ for (uint32_t i = 0; i < pCreateInfo->enabledExtensionNameCount; i++) {
bool found = false;
for (uint32_t j = 0; j < ARRAY_SIZE(global_extensions); j++) {
if (strcmp(pCreateInfo->ppEnabledExtensionNames[i],
@@ -223,7 +223,7 @@ VkResult anv_CreateInstance(
instance->pAllocUserData = alloc_callbacks->pUserData;
instance->pfnAlloc = alloc_callbacks->pfnAlloc;
instance->pfnFree = alloc_callbacks->pfnFree;
- instance->apiVersion = pCreateInfo->pAppInfo->apiVersion;
+ instance->apiVersion = pCreateInfo->pApplicationInfo->apiVersion;
instance->physicalDeviceCount = -1;
_mesa_locale_init();