yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

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
1 changed files with 2 additions and 0 deletions

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) {