diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2021-01-15 07:32:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 07:32:01 +0100 |
commit | 185388f341675cf1827691f77ef51e4e2ec44c98 (patch) | |
tree | 7b0f79127d221cafa1c608e0d74fc57479115d48 /src/video_core/vulkan_common/vulkan_device.cpp | |
parent | Merge pull request #5349 from ReinUsesLisp/anv-fix (diff) | |
parent | vulkan_common: Silence missing initializer warnings (diff) | |
download | yuzu-185388f341675cf1827691f77ef51e4e2ec44c98.tar yuzu-185388f341675cf1827691f77ef51e4e2ec44c98.tar.gz yuzu-185388f341675cf1827691f77ef51e4e2ec44c98.tar.bz2 yuzu-185388f341675cf1827691f77ef51e4e2ec44c98.tar.lz yuzu-185388f341675cf1827691f77ef51e4e2ec44c98.tar.xz yuzu-185388f341675cf1827691f77ef51e4e2ec44c98.tar.zst yuzu-185388f341675cf1827691f77ef51e4e2ec44c98.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index b51d6ec3c..37d7b45a3 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -99,8 +99,7 @@ VkFormatFeatureFlags GetFormatFeatures(VkFormatProperties properties, FormatType }); } -std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties( - vk::PhysicalDevice physical, const vk::InstanceDispatch& dld) { +std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(vk::PhysicalDevice physical) { static constexpr std::array formats{ VK_FORMAT_A8B8G8R8_UNORM_PACK32, VK_FORMAT_A8B8G8R8_UINT_PACK32, @@ -210,7 +209,7 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties( Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR surface, const vk::InstanceDispatch& dld_) : instance{instance_}, dld{dld_}, physical{physical_}, properties{physical.GetProperties()}, - format_properties{GetFormatProperties(physical, dld)} { + format_properties{GetFormatProperties(physical)} { CheckSuitability(); SetupFamilies(surface); SetupFeatures(); @@ -221,6 +220,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR VkPhysicalDeviceFeatures2 features2{ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, .pNext = nullptr, + .features{}, }; const void* first_next = &features2; void** next = &features2.pNext; @@ -310,6 +310,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR VkPhysicalDeviceHostQueryResetFeaturesEXT host_query_reset{ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES_EXT, + .pNext = nullptr, .hostQueryReset = true, }; SetNext(next, host_query_reset); |