mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
android: vulkan_device: Only compile OverrideBcnFormats when used.
This commit is contained in:
parent
6b2e89a865
commit
8b8123b733
@ -266,6 +266,7 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(vk::Physica
|
|||||||
return format_properties;
|
return format_properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(ANDROID) && defined(ARCHITECTURE_arm64)
|
||||||
void OverrideBcnFormats(std::unordered_map<VkFormat, VkFormatProperties>& format_properties) {
|
void OverrideBcnFormats(std::unordered_map<VkFormat, VkFormatProperties>& format_properties) {
|
||||||
// These properties are extracted from Adreno driver 512.687.0
|
// These properties are extracted from Adreno driver 512.687.0
|
||||||
constexpr VkFormatFeatureFlags tiling_features{
|
constexpr VkFormatFeatureFlags tiling_features{
|
||||||
@ -289,6 +290,7 @@ void OverrideBcnFormats(std::unordered_map<VkFormat, VkFormatProperties>& format
|
|||||||
format_properties[format].bufferFeatures = buffer_features;
|
format_properties[format].bufferFeatures = buffer_features;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
NvidiaArchitecture GetNvidiaArchitecture(vk::PhysicalDevice physical,
|
NvidiaArchitecture GetNvidiaArchitecture(vk::PhysicalDevice physical,
|
||||||
const std::set<std::string, std::less<>>& exts) {
|
const std::set<std::string, std::less<>>& exts) {
|
||||||
|
Loading…
Reference in New Issue
Block a user