diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-11-26 20:49:20 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-11-26 21:52:26 +0100 |
commit | 2ccf85a9103afbb4dc227e481bb0e3a7360e833b (patch) | |
tree | c5f6f65bdf56a35560a105fbe18a7ea673ae450d /src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | |
parent | Merge pull request #4975 from comex/invalid-syncpoint-id (diff) | |
download | yuzu-2ccf85a9103afbb4dc227e481bb0e3a7360e833b.tar yuzu-2ccf85a9103afbb4dc227e481bb0e3a7360e833b.tar.gz yuzu-2ccf85a9103afbb4dc227e481bb0e3a7360e833b.tar.bz2 yuzu-2ccf85a9103afbb4dc227e481bb0e3a7360e833b.tar.lz yuzu-2ccf85a9103afbb4dc227e481bb0e3a7360e833b.tar.xz yuzu-2ccf85a9103afbb4dc227e481bb0e3a7360e833b.tar.zst yuzu-2ccf85a9103afbb4dc227e481bb0e3a7360e833b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index 1c52f40bb..fed9ebecd 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -315,7 +315,6 @@ public: "supported on this device"); } } - if (ir.UsesLayer() || ir.UsesViewportIndex()) { if (ir.UsesViewportIndex()) { AddCapability(spv::Capability::MultiViewport); @@ -325,11 +324,9 @@ public: AddCapability(spv::Capability::ShaderViewportIndexLayerEXT); } } - if (device.IsFormatlessImageLoadSupported()) { AddCapability(spv::Capability::StorageImageReadWithoutFormat); } - if (device.IsFloat16Supported()) { AddCapability(spv::Capability::Float16); } @@ -377,6 +374,9 @@ public: if (header.ps.omap.depth) { AddExecutionMode(main, spv::ExecutionMode::DepthReplacing); } + if (specialization.early_fragment_tests) { + AddExecutionMode(main, spv::ExecutionMode::EarlyFragmentTests); + } break; case ShaderType::Compute: const auto workgroup_size = specialization.workgroup_size; |