diff options
author | Liam <byteslice@airmail.cc> | 2023-11-19 17:27:12 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-11-19 17:27:12 +0100 |
commit | 473caaff5b02dc75404943dee6b12234995136d4 (patch) | |
tree | 9ffcc37eaf92051541ae5e159461506d520f22c6 /src/shader_recompiler/backend/spirv/emit_spirv.cpp | |
parent | Merge pull request #12081 from FernandoS27/check-out-on-your-broke-crypto-friends (diff) | |
download | yuzu-473caaff5b02dc75404943dee6b12234995136d4.tar yuzu-473caaff5b02dc75404943dee6b12234995136d4.tar.gz yuzu-473caaff5b02dc75404943dee6b12234995136d4.tar.bz2 yuzu-473caaff5b02dc75404943dee6b12234995136d4.tar.lz yuzu-473caaff5b02dc75404943dee6b12234995136d4.tar.xz yuzu-473caaff5b02dc75404943dee6b12234995136d4.tar.zst yuzu-473caaff5b02dc75404943dee6b12234995136d4.zip |
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv.cpp')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp index 34592a01f..0031fa5fb 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp @@ -407,7 +407,7 @@ void SetupCapabilities(const Profile& profile, const Info& info, EmitContext& ct } ctx.AddCapability(spv::Capability::DemoteToHelperInvocation); } - if (info.stores[IR::Attribute::ViewportIndex]) { + if (info.stores[IR::Attribute::ViewportIndex] && profile.support_multi_viewport) { ctx.AddCapability(spv::Capability::MultiViewport); } if (info.stores[IR::Attribute::ViewportMask] && profile.support_viewport_mask) { |