From fa745a13cf23f4992b6520e8f812ffa2f752b497 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Mon, 4 Nov 2024 19:39:02 -0800 Subject: [PATCH] remove mock vulkan memory test. (flutter/engine#56367) This test is flakey despite using the mocked vulkan backend. This likely indicates that VMA is still performing some real initialization work in a way that is not consistently passing or failing. It may not be safe to use VMA with mock vulkan. --- .../backend/vulkan/allocator_vk_unittests.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/allocator_vk_unittests.cc b/engine/src/flutter/impeller/renderer/backend/vulkan/allocator_vk_unittests.cc index f4458d2345..94cb0dec5b 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/allocator_vk_unittests.cc +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/allocator_vk_unittests.cc @@ -73,19 +73,6 @@ TEST(AllocatorVKTest, MemoryTypeSelectionTwoHeap) { EXPECT_EQ(AllocatorVK::FindMemoryTypeIndex(4, properties), -1); } -TEST(AllocatorVKTest, DeviceBufferCoherency) { - auto const context = MockVulkanContextBuilder().Build(); - auto allocator = context->GetResourceAllocator(); - - std::shared_ptr buffer = - allocator->CreateBuffer(DeviceBufferDescriptor{ - .storage_mode = StorageMode::kHostVisible, - .size = 1024, - }); - - EXPECT_TRUE(DeviceBufferVK::Cast(*buffer).IsHostCoherent()); -} - #ifdef IMPELLER_DEBUG TEST(AllocatorVKTest, RecreateSwapchainWhenSizeChanges) {