diff options
| author | 2023-05-07 18:41:26 -0700 | |
|---|---|---|
| committer | 2023-06-03 00:06:00 -0700 | |
| commit | 8b8123b733109f505a10e18f89af2e67d17755f1 (patch) | |
| tree | 923028abfe3f268b49a9e3a12cb6e464a996daa6 /src | |
| parent | android: remove spurious warnings about BCn formats when patched with adrenot... (diff) | |
| download | yuzu-8b8123b733109f505a10e18f89af2e67d17755f1.tar.gz yuzu-8b8123b733109f505a10e18f89af2e67d17755f1.tar.xz yuzu-8b8123b733109f505a10e18f89af2e67d17755f1.zip | |
android: vulkan_device: Only compile OverrideBcnFormats when used.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 1eec4afb0..75c450365 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp | |||
| @@ -266,6 +266,7 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(vk::Physica | |||
| 266 | return format_properties; | 266 | return format_properties; |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | #if defined(ANDROID) && defined(ARCHITECTURE_arm64) | ||
| 269 | void OverrideBcnFormats(std::unordered_map<VkFormat, VkFormatProperties>& format_properties) { | 270 | void OverrideBcnFormats(std::unordered_map<VkFormat, VkFormatProperties>& format_properties) { |
| 270 | // These properties are extracted from Adreno driver 512.687.0 | 271 | // These properties are extracted from Adreno driver 512.687.0 |
| 271 | constexpr VkFormatFeatureFlags tiling_features{ | 272 | constexpr VkFormatFeatureFlags tiling_features{ |
| @@ -289,6 +290,7 @@ void OverrideBcnFormats(std::unordered_map<VkFormat, VkFormatProperties>& format | |||
| 289 | format_properties[format].bufferFeatures = buffer_features; | 290 | format_properties[format].bufferFeatures = buffer_features; |
| 290 | } | 291 | } |
| 291 | } | 292 | } |
| 293 | #endif | ||
| 292 | 294 | ||
| 293 | NvidiaArchitecture GetNvidiaArchitecture(vk::PhysicalDevice physical, | 295 | NvidiaArchitecture GetNvidiaArchitecture(vk::PhysicalDevice physical, |
| 294 | const std::set<std::string, std::less<>>& exts) { | 296 | const std::set<std::string, std::less<>>& exts) { |