goldfish-opengl: nuke unnecessary std::min comparison
Both the default block size and virtual heap size are constants,
and virtual heap size is always bigger.
BUG=233803018
TEST=compile
Change-Id: Idb3a9911e63b2b0db1f9446ef0f127369e1d048e
diff --git a/system/vulkan_enc/ResourceTracker.cpp b/system/vulkan_enc/ResourceTracker.cpp
index dcaa132..50666a0 100644
--- a/system/vulkan_enc/ResourceTracker.cpp
+++ b/system/vulkan_enc/ResourceTracker.cpp
@@ -3599,9 +3599,7 @@
kLargestPageSize * ((pAllocateInfo->allocationSize + kLargestPageSize - 1) / kLargestPageSize);
VkDeviceSize blockSizeNeeded =
- std::max(roundedUpAllocSize,
- std::min(kHostVisibleHeapSize,
- kDefaultHostMemBlockSize));
+ std::max(roundedUpAllocSize, kDefaultHostMemBlockSize);
VkMemoryAllocateInfo allocInfoForHost = vk_make_orphan_copy(*pAllocateInfo);
vk_struct_chain_iterator structChainIter = vk_make_chain_iterator(&allocInfoForHost);