Skip to content

Commit

Permalink
[Impeller] enable ahb swapchain on emulators. (flutter#54019)
Browse files Browse the repository at this point in the history
Fixes  flutter/flutter#147533

This works now that the backpressure issue is fixed. Maybe the wait semaphore didn't work, but the CPU wait on the fence does.
  • Loading branch information
jonahwilliams authored Jul 22, 2024
1 parent 207f088 commit ee306fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions impeller/renderer/backend/vulkan/swapchain/swapchain_vk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,8 @@ std::shared_ptr<SwapchainVK> SwapchainVK::Create(
return nullptr;
}

// TODO(147533): AHB swapchains on emulators are not functional.
const auto emulator = ContextVK::Cast(*context).GetDriverInfo()->IsEmulator();

// Try AHB swapchains first.
if (!emulator && AHBSwapchainVK::IsAvailableOnPlatform()) {
if (AHBSwapchainVK::IsAvailableOnPlatform()) {
auto ahb_swapchain = std::shared_ptr<AHBSwapchainVK>(new AHBSwapchainVK(
context, //
window.GetHandle(), //
Expand Down

0 comments on commit ee306fd

Please sign in to comment.