Explorar o código

spirv: Enable DemoteToHelperInvocationEXT only when supported

ReinUsesLisp %!s(int64=5) %!d(string=hai) anos
pai
achega
2b434b74af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/shader_recompiler/backend/spirv/emit_spirv.cpp

+ 1 - 1
src/shader_recompiler/backend/spirv/emit_spirv.cpp

@@ -296,7 +296,7 @@ void SetupCapabilities(const Profile& profile, const Info& info, EmitContext& ct
     if (info.uses_sparse_residency) {
         ctx.AddCapability(spv::Capability::SparseResidency);
     }
-    if (info.uses_demote_to_helper_invocation) {
+    if (info.uses_demote_to_helper_invocation && profile.support_demote_to_helper_invocation) {
         ctx.AddExtension("SPV_EXT_demote_to_helper_invocation");
         ctx.AddCapability(spv::Capability::DemoteToHelperInvocationEXT);
     }