diff options
Diffstat (limited to 'src')
| -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 | } |