diff options
author | Nguyen Dac Nam <nam.kazt.91@gmail.com> | 2020-02-20 03:28:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 03:28:13 +0100 |
commit | fbbad9584530c186d2a592db8997eb850ba37547 (patch) | |
tree | c9bf4691aa133232024df656caa84a8d5aa9bd96 /src/video_core | |
parent | shader_decompiler: add check in case of device not support ShaderStorageImageReadWithoutFormat (diff) | |
download | yuzu-fbbad9584530c186d2a592db8997eb850ba37547.tar yuzu-fbbad9584530c186d2a592db8997eb850ba37547.tar.gz yuzu-fbbad9584530c186d2a592db8997eb850ba37547.tar.bz2 yuzu-fbbad9584530c186d2a592db8997eb850ba37547.tar.lz yuzu-fbbad9584530c186d2a592db8997eb850ba37547.tar.xz yuzu-fbbad9584530c186d2a592db8997eb850ba37547.tar.zst yuzu-fbbad9584530c186d2a592db8997eb850ba37547.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index c02306d69..6cd5fae30 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -274,7 +274,6 @@ public: AddCapability(spv::Capability::ImageBuffer); AddCapability(spv::Capability::ImageGatherExtended); AddCapability(spv::Capability::SampledBuffer); - AddCapability(spv::Capability::StorageImageReadWithoutFormat); AddCapability(spv::Capability::StorageImageWriteWithoutFormat); AddCapability(spv::Capability::SubgroupBallotKHR); AddCapability(spv::Capability::SubgroupVoteKHR); @@ -290,6 +289,10 @@ public: AddCapability(spv::Capability::ShaderViewportIndexLayerEXT); } } + + if (device.IsShaderStorageImageReadWithoutFormatSupported()) { + AddCapability(spv::Capability::StorageImageReadWithoutFormat); + } if (device.IsFloat16Supported()) { AddCapability(spv::Capability::Float16); |