ATOM-15808 [RHI][Vulkan] Take out the early memory check exit to let the developers decide what to do if device memory is less than the requirement.

JIRA: https://jira.agscollab.com/browse/ATOM-15808
This commit is contained in:
Peng
2021-06-17 14:55:13 -07:00
parent b0bb29373b
commit 609752b79e
@@ -64,10 +64,7 @@ namespace AZ
physicalDevice->Init(device);
size_t gpuMemSize = physicalDevice->GetDescriptor().m_heapSizePerLevel[static_cast<size_t>(RHI::HeapMemoryLevel::Device)];
AZ_Warning("Vulkan", gpuMemSize >= MinGPUMemSize, "Rejecting GPU %s as it's gpu mem size of %zu bytes is less than min required size of %zu bytes for Vulkan API", physicalDevice->GetDescriptor().m_description.c_str(), gpuMemSize, MinGPUMemSize);
if (gpuMemSize >= MinGPUMemSize)
{
physicalDeviceList.emplace_back(physicalDevice);
}
physicalDeviceList.emplace_back(physicalDevice);
}
return physicalDeviceList;