Skip to content

Commit

Permalink
layers: Fix VUID-VkSwapchainCreateInfoKHR-presentMode-02839
Browse files Browse the repository at this point in the history
Including a VkSurfacePresentModeEXT in the call to
GetSurfaceCapabilities makes this check more strict than it should be.
  • Loading branch information
r-potter committed Jul 25, 2024
1 parent 1591031 commit 705b886
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions layers/core_checks/cc_wsi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,6 @@ bool CoreChecks::ValidateCreateSwapchain(const VkSwapchainCreateInfoKHR &create_
}
}
#endif
VkSurfacePresentModeEXT present_mode_info = vku::InitStructHelper();
if (IsExtEnabled(device_extensions.vk_ext_surface_maintenance1)) {
present_mode_info.presentMode = create_info.presentMode;
present_mode_info.pNext = surface_info_pnext;
surface_info_pnext = &present_mode_info;
}

const auto surface_caps = surface_state->GetSurfaceCapabilities(physical_device_state->VkHandle(), surface_info_pnext);

bool skip = false;
Expand Down

0 comments on commit 705b886

Please sign in to comment.