From: Ian Elliott Date: Tue, 29 Dec 2015 23:45:49 +0000 (-0700) Subject: Swapchain: Rename deviceSwapchainExtensionEnabled->swapchainExtensionEnabled X-Git-Tag: upstream/1.1.92~4198 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=750ab6a9ec615adf7609ffce2425d08ac644973c;p=platform%2Fupstream%2FVulkan-Tools.git Swapchain: Rename deviceSwapchainExtensionEnabled->swapchainExtensionEnabled --- diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp index 5d4dfda..33d7a69 100644 --- a/layers/swapchain.cpp +++ b/layers/swapchain.cpp @@ -130,7 +130,7 @@ static void createDeviceRegisterExtensions(VkPhysicalDevice physicalDevice, cons "vkCreateDevice() called with a non-valid VkPhysicalDevice."); } my_device_data->deviceMap[device].device = device; - my_device_data->deviceMap[device].deviceSwapchainExtensionEnabled = false; + my_device_data->deviceMap[device].swapchainExtensionEnabled = false; // Record whether the WSI device extension was enabled for this VkDevice. // No need to check if the extension was advertised by @@ -138,7 +138,7 @@ static void createDeviceRegisterExtensions(VkPhysicalDevice physicalDevice, cons for (i = 0; i < pCreateInfo->enabledExtensionNameCount; i++) { if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_SWAPCHAIN_EXTENSION_NAME) == 0) { - my_device_data->deviceMap[device].deviceSwapchainExtensionEnabled = true; + my_device_data->deviceMap[device].swapchainExtensionEnabled = true; } } } @@ -933,7 +933,7 @@ static VkBool32 validateCreateSwapchainKHR(VkDevice device, const VkSwapchainCre "%s() called with a non-valid %s.", fn, "VkDevice"); - } else if (!pDevice->deviceSwapchainExtensionEnabled) { + } else if (!pDevice->swapchainExtensionEnabled) { return LOG_ERROR(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice", SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, "%s() called even though the %s extension was not enabled for this VkDevice.", @@ -1213,7 +1213,7 @@ VK_LAYER_EXPORT VKAPI_ATTR void VKAPI_CALL vkDestroySwapchainKHR( skipCall |= LOG_ERROR_NON_VALID_OBJ(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice"); - } else if (!pDevice->deviceSwapchainExtensionEnabled) { + } else if (!pDevice->swapchainExtensionEnabled) { skipCall |= LOG_ERROR(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice", SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, "%s() called even though the %s extension was not enabled for this VkDevice.", @@ -1263,7 +1263,7 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainImagesKHR(VkDevice skipCall |= LOG_ERROR_NON_VALID_OBJ(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice"); - } else if (!pDevice->deviceSwapchainExtensionEnabled) { + } else if (!pDevice->swapchainExtensionEnabled) { skipCall |= LOG_ERROR(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice", SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, "%s() called even though the %s extension was not enabled for this VkDevice.", @@ -1323,7 +1323,7 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImageKHR( skipCall |= LOG_ERROR_NON_VALID_OBJ(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice"); - } else if (!pDevice->deviceSwapchainExtensionEnabled) { + } else if (!pDevice->swapchainExtensionEnabled) { skipCall |= LOG_ERROR(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice", SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, "%s() called even though the %s extension was not enabled for this VkDevice.", @@ -1398,7 +1398,7 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkQueuePresentKHR( SwpSwapchain *pSwapchain = &my_data->swapchainMap[pPresentInfo->pSwapchains[i]]; if (pSwapchain) { - if (!pSwapchain->pDevice->deviceSwapchainExtensionEnabled) { + if (!pSwapchain->pDevice->swapchainExtensionEnabled) { skipCall |= LOG_ERROR(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, pSwapchain->pDevice, "VkDevice", SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, @@ -1551,7 +1551,7 @@ VK_LAYER_EXPORT VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetDeviceProcAddr(VkD my_data = get_my_data_ptr(get_dispatch_key(device), layer_data_map); VkLayerDispatchTable *pDisp = my_data->device_dispatch_table; if (my_data->deviceMap.size() != 0 && - my_data->deviceMap[device].deviceSwapchainExtensionEnabled) + my_data->deviceMap[device].swapchainExtensionEnabled) { if (!strcmp("vkCreateSwapchainKHR", funcName)) return reinterpret_cast(vkCreateSwapchainKHR); diff --git a/layers/swapchain.h b/layers/swapchain.h index 1e3d10f..0ffc8df 100644 --- a/layers/swapchain.h +++ b/layers/swapchain.h @@ -194,7 +194,7 @@ struct _SwpDevice { SwpPhysicalDevice *pPhysicalDevice; // Set to true if VK_KHR_SWAPCHAIN_EXTENSION_NAME was enabled: - bool deviceSwapchainExtensionEnabled; + bool swapchainExtensionEnabled; // When vkCreateSwapchainKHR is called, the VkSwapchainKHR's are // remembered: