[Vulkan] Remove backend swap event (unused and confusing)

This commit is contained in:
DrChat
2018-03-01 10:19:11 -06:00
parent b2f1bf914a
commit b3626a039b
2 changed files with 0 additions and 37 deletions

View File

@@ -278,19 +278,6 @@ void VulkanGraphicsSystem::Swap(xe::ui::UIEvent* e) {
// return;
}
auto event = reinterpret_cast<VkEvent>(swap_state.backend_data);
if (event == nullptr) {
// The command processor is currently uninitialized.
return;
}
VkResult status = vkGetEventStatus(*device_, event);
if (status != VK_EVENT_SET) {
// The device has not finished processing the image.
// return;
}
vkResetEvent(*device_, event);
swap_state.pending = false;
}
@@ -304,11 +291,6 @@ void VulkanGraphicsSystem::Swap(xe::ui::UIEvent* e) {
auto front_buffer =
reinterpret_cast<VkImage>(swap_state.front_buffer_texture);
// Wait on and signal the swap semaphore.
// TODO(DrChat): Interacting with the window causes the device to be lost in
// some games.
// swap_chain->WaitAndSignalSemaphore(semaphore);
VkImageMemoryBarrier barrier;
std::memset(&barrier, 0, sizeof(VkImageMemoryBarrier));
barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER;