summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorNguyen Dac Nam <nam.kazt.91@gmail.com>2020-02-20 03:28:13 +0100
committerGitHub <noreply@github.com>2020-02-20 03:28:13 +0100
commitfbbad9584530c186d2a592db8997eb850ba37547 (patch)
treec9bf4691aa133232024df656caa84a8d5aa9bd96 /src/video_core/renderer_vulkan
parentshader_decompiler: add check in case of device not support ShaderStorageImageReadWithoutFormat (diff)
downloadyuzu-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/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_shader_decompiler.cpp5
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);