From aadb7dce9b5dfc16878638580dc80759a45ca773 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 30 Nov 2015 21:10:14 -0800 Subject: vk/0.210.0: Update to the new instance/device create structs --- src/vulkan/anv_device.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index f0e2643..e0a6ed6 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -172,14 +172,14 @@ static const VkAllocCallbacks default_alloc_callbacks = { static const VkExtensionProperties global_extensions[] = { { - .extName = VK_EXT_KHR_SWAPCHAIN_EXTENSION_NAME, + .extensionName = VK_EXT_KHR_SWAPCHAIN_EXTENSION_NAME, .specVersion = 17, }, }; static const VkExtensionProperties device_extensions[] = { { - .extName = VK_EXT_KHR_DEVICE_SWAPCHAIN_EXTENSION_NAME, + .extensionName = VK_EXT_KHR_DEVICE_SWAPCHAIN_EXTENSION_NAME, .specVersion = 53, }, }; @@ -201,7 +201,7 @@ VkResult anv_CreateInstance( bool found = false; for (uint32_t j = 0; j < ARRAY_SIZE(global_extensions); j++) { if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], - global_extensions[j].extName) == 0) { + global_extensions[j].extensionName) == 0) { found = true; break; } @@ -502,15 +502,15 @@ void anv_GetPhysicalDeviceProperties( *pProperties = (VkPhysicalDeviceProperties) { .apiVersion = VK_MAKE_VERSION(0, 170, 2), .driverVersion = 1, - .vendorId = 0x8086, - .deviceId = pdevice->chipset_id, + .vendorID = 0x8086, + .deviceID = pdevice->chipset_id, .deviceType = VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU, .limits = limits, .sparseProperties = {0}, /* Broadwell doesn't do sparse. */ }; strcpy(pProperties->deviceName, pdevice->name); - snprintf((char *)pProperties->pipelineCacheUUID, VK_UUID_LENGTH, + snprintf((char *)pProperties->pipelineCacheUUID, VK_UUID_SIZE, "anv-%s", MESA_GIT_SHA1 + 4); } @@ -619,11 +619,11 @@ VkResult anv_CreateDevice( assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO); - 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(device_extensions); j++) { if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], - device_extensions[j].extName) == 0) { + device_extensions[j].extensionName) == 0) { found = true; break; } -- cgit v1.1