diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-11-25 16:17:28 +1300 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-11-29 08:32:15 +1300 |
| commit | 2bb5f72ccc6dc77f66fac121139aeb9aed4a5836 (patch) | |
| tree | 1c5626958a7a6af6cb25ababedabae3fa3293c9e /layers/core_validation.cpp | |
| parent | 8a630566844b7b76bd5c74555088064e4593ed2f (diff) | |
| download | usermoji-2bb5f72ccc6dc77f66fac121139aeb9aed4a5836.tar.xz | |
layers: Note swapchain replacement rules may be out of date
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 7db1142b..ee6768cb 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -11616,6 +11616,7 @@ static bool PreCallValidateCreateSwapchainKHR(layer_data *dev_data, VkSwapchainC SURFACE_STATE *surface_state, SWAPCHAIN_NODE *old_swapchain_state) { auto most_recent_swapchain = surface_state->swapchain ? surface_state->swapchain : surface_state->old_swapchain; + // TODO: revisit this. some of these rules are being relaxed. if (most_recent_swapchain != old_swapchain_state || (surface_state->old_swapchain && surface_state->swapchain)) { if (log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, reinterpret_cast<uint64_t>(dev_data->device), __LINE__, DRAWSTATE_SWAPCHAIN_ALREADY_EXISTS, "DS", |
