aboutsummaryrefslogtreecommitdiff
path: root/layers/swapchain.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-10-06 13:01:33 +1300
committerChris Forbes <chrisforbes@google.com>2016-10-06 17:43:18 +1300
commitad1002000e8b2d457bf2351ecd2832f8bb1ad56f (patch)
treeb1ba394a5d2cdee08a439d6b8c71cce29acf2878 /layers/swapchain.cpp
parentd8cc42e154b3aaf57aa932dd8a8e5db1be81ce61 (diff)
downloadusermoji-ad1002000e8b2d457bf2351ecd2832f8bb1ad56f.tar.xz
layers: Migrate surface/swapchain interaction from swapchain to CV
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/swapchain.cpp')
-rw-r--r--layers/swapchain.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp
index 2d4927ac..f43a472d 100644
--- a/layers/swapchain.cpp
+++ b/layers/swapchain.cpp
@@ -1837,29 +1837,6 @@ static bool validateCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateI
pCreateInfo->clipped);
}
- // Validate pCreateInfo->oldSwapchain:
- if (pCreateInfo && pCreateInfo->oldSwapchain) {
- SwpSwapchain *pOldSwapchain = NULL;
- {
- auto it = my_data->swapchainMap.find(pCreateInfo->oldSwapchain);
- pOldSwapchain = (it == my_data->swapchainMap.end()) ? NULL : &it->second;
- }
- if (pOldSwapchain) {
- if (device != pOldSwapchain->pDevice->device) {
- skip_call |=
- log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT,
- reinterpret_cast<uint64_t>(device), __LINE__, SWAPCHAIN_DESTROY_SWAP_DIFF_DEVICE, swapchain_layer_name,
- "vkCreateSwapchainKHR() called with a different VkDevice than the VkSwapchainKHR was created with.");
- }
- if (pCreateInfo->surface != pOldSwapchain->pSurface->surface) {
- skip_call |=
- log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT,
- reinterpret_cast<uint64_t>(device), __LINE__, SWAPCHAIN_CREATE_SWAP_DIFF_SURFACE, swapchain_layer_name,
- "vkCreateSwapchainKHR() called with pCreateInfo->oldSwapchain pCreateInfo->surface.");
- }
- }
- }
-
return skip_call;
}
@@ -1941,12 +1918,6 @@ VKAPI_ATTR void VKAPI_CALL DestroySwapchainKHR(VkDevice device, VkSwapchainKHR s
// Delete the SwpSwapchain associated with this swapchain:
if (pSwapchain->pDevice) {
pSwapchain->pDevice->swapchains.erase(swapchain);
- if (device != pSwapchain->pDevice->device) {
- skip_call |=
- log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT,
- reinterpret_cast<uint64_t>(device), __LINE__, SWAPCHAIN_DESTROY_SWAP_DIFF_DEVICE, swapchain_layer_name,
- "vkDestroySwapchainKHR() called with a different VkDevice than the VkSwapchainKHR was created with.");
- }
}
if (pSwapchain->pSurface) {
pSwapchain->pSurface->swapchains.erase(swapchain);