diff options
| author | 2021-05-23 04:18:55 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:29 -0400 | |
| commit | 2b434b74af7be8c6ed2e96970e4e3965e351edbd (patch) | |
| tree | 3625e165a1454e2d81a0ab6b4cf66304df76eb51 /src/shader_recompiler/backend/spirv/emit_spirv.cpp | |
| parent | spirv: Use OriginLowerLeft when requested (diff) | |
| download | yuzu-2b434b74af7be8c6ed2e96970e4e3965e351edbd.tar.gz yuzu-2b434b74af7be8c6ed2e96970e4e3965e351edbd.tar.xz yuzu-2b434b74af7be8c6ed2e96970e4e3965e351edbd.zip | |
spirv: Enable DemoteToHelperInvocationEXT only when supported
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 10de612cd..eb192e3c9 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp | |||
| @@ -296,7 +296,7 @@ void SetupCapabilities(const Profile& profile, const Info& info, EmitContext& ct | |||
| 296 | if (info.uses_sparse_residency) { | 296 | if (info.uses_sparse_residency) { |
| 297 | ctx.AddCapability(spv::Capability::SparseResidency); | 297 | ctx.AddCapability(spv::Capability::SparseResidency); |
| 298 | } | 298 | } |
| 299 | if (info.uses_demote_to_helper_invocation) { | 299 | if (info.uses_demote_to_helper_invocation && profile.support_demote_to_helper_invocation) { |
| 300 | ctx.AddExtension("SPV_EXT_demote_to_helper_invocation"); | 300 | ctx.AddExtension("SPV_EXT_demote_to_helper_invocation"); |
| 301 | ctx.AddCapability(spv::Capability::DemoteToHelperInvocationEXT); | 301 | ctx.AddCapability(spv::Capability::DemoteToHelperInvocationEXT); |
| 302 | } | 302 | } |