3
0
Fork 0
forked from suyu/suyu

android: vulkan_device: Only compile OverrideBcnFormats when used.

This commit is contained in:
bunnei 2023-05-07 18:41:26 -07:00
parent 6b2e89a865
commit 8b8123b733

View file

@ -266,6 +266,7 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(vk::Physica
return format_properties;
}
#if defined(ANDROID) && defined(ARCHITECTURE_arm64)
void OverrideBcnFormats(std::unordered_map<VkFormat, VkFormatProperties>& format_properties) {
// These properties are extracted from Adreno driver 512.687.0
constexpr VkFormatFeatureFlags tiling_features{
@ -289,6 +290,7 @@ void OverrideBcnFormats(std::unordered_map<VkFormat, VkFormatProperties>& format
format_properties[format].bufferFeatures = buffer_features;
}
}
#endif
NvidiaArchitecture GetNvidiaArchitecture(vk::PhysicalDevice physical,
const std::set<std::string, std::less<>>& exts) {