diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-15 06:45:44 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-15 06:47:05 +0100 |
commit | ba2ea7eeacb9fb3d438e304b4709cee422f3b5be (patch) | |
tree | 1ecb7d346c3fcd15f94f8d78afde23cdf35a2ca5 /src/video_core/vulkan_common/vulkan_device.cpp | |
parent | Merge pull request #5302 from lat9nq/appimage-update (diff) | |
download | yuzu-ba2ea7eeacb9fb3d438e304b4709cee422f3b5be.tar yuzu-ba2ea7eeacb9fb3d438e304b4709cee422f3b5be.tar.gz yuzu-ba2ea7eeacb9fb3d438e304b4709cee422f3b5be.tar.bz2 yuzu-ba2ea7eeacb9fb3d438e304b4709cee422f3b5be.tar.lz yuzu-ba2ea7eeacb9fb3d438e304b4709cee422f3b5be.tar.xz yuzu-ba2ea7eeacb9fb3d438e304b4709cee422f3b5be.tar.zst yuzu-ba2ea7eeacb9fb3d438e304b4709cee422f3b5be.zip |
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.cpp')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index d6f603b99..b51d6ec3c 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -256,7 +256,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR .shaderTessellationAndGeometryPointSize = false, .shaderImageGatherExtended = true, .shaderStorageImageExtendedFormats = false, - .shaderStorageImageMultisample = true, + .shaderStorageImageMultisample = is_shader_storage_image_multisample, .shaderStorageImageReadWithoutFormat = is_formatless_image_load_supported, .shaderStorageImageWriteWithoutFormat = true, .shaderUniformBufferArrayDynamicIndexing = false, @@ -803,6 +803,7 @@ void Device::SetupFamilies(VkSurfaceKHR surface) { void Device::SetupFeatures() { const auto supported_features{physical.GetFeatures()}; is_formatless_image_load_supported = supported_features.shaderStorageImageReadWithoutFormat; + is_shader_storage_image_multisample = supported_features.shaderStorageImageMultisample; is_blit_depth_stencil_supported = TestDepthStencilBlits(); is_optimal_astc_supported = IsOptimalAstcSupported(supported_features); } |