فهرست منبع

Fix patch constant function prop setting for DxilLinker

Tex Riddell 7 سال پیش
والد
کامیت
28c04e456b
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      lib/HLSL/DxilLinker.cpp

+ 1 - 2
lib/HLSL/DxilLinker.cpp

@@ -602,8 +602,7 @@ DxilLinkJob::Link(std::pair<DxilFunctionLinkInfo *, DxilLib *> &entryLinkPair,
     Function *patchConstantFunc = props.ShaderProps.HS.patchConstantFunc;
     Function *newPatchConstantFunc =
         m_newFunctions[patchConstantFunc->getName()];
-    DM.SetPatchConstantFunctionForHS(entryFunc, nullptr);
-    DM.SetPatchConstantFunctionForHS(NewEntryFunc, newPatchConstantFunc);
+    props.ShaderProps.HS.patchConstantFunc = newPatchConstantFunc;
 
     if (newPatchConstantFunc->hasFnAttribute(llvm::Attribute::AlwaysInline))
       newPatchConstantFunc->removeFnAttr(llvm::Attribute::AlwaysInline);